Function at 0x40bfd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x487580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x298], eax
call fcn.00413170
lea ecx, [ebp - 0x224]
call fcn.00413170
lea ecx, [ebp - 0x234]
call fcn.00413170
lea ecx, [ebp - 0x244]
call fcn.00413170
lea ecx, [ebp - 0x254]
call fcn.00413170
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffe00
mov dword [ebp - 0x2a0], ebx
cmp ebx, 0xd
ja 0x40c3a7
mov ecx, dword [ebp - 0x298]
movsx eax, cx
mov dword [ebp - 0x2b0], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x2ac], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2c4]
push eax
mov dword [ebp - 0x2c4], 0x10
mov dword [ebp - 0x2c0], 3
mov dword [ebp - 0x2b8], 0xc8
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
cmp dword [edi + 0xc], 0
je 0x40c3a7
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x18]
jne 0x40c3a7
cmp ebx, 5
ja case.default.0x40c0c3
jmp dword [ebx*4 + 0x40d384]
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x138]
jmp case.default.0x40c0c3
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x124]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 5
mov ecx, esi
call fcn.00411430
mov eax, dword [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
push dword [ebp + 0xc]
push dword [ebp - 0x2b4]
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x128]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 6
jmp 0x40c18e
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x13c]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 0xa
jmp 0x40c18e
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x12c]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 7
jmp 0x40c18e
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x130]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 8
jmp 0x40c18e
mov eax, dword [edi + 0x40]
mov esi, dword [eax]
cmp esi, eax
je 0x40c434
mov ebx, dword [esi + 0x10]
push ebx
call fcn.004127f0
test eax, eax
je 0x40c3e9
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
test eax, eax
jne 0x40c3e9
push dword [ebp - 0x298]
mov eax, dword [ebx]
push dword [ebp - 0x29c]
push dword [ebp + 0xc]
push dword [ebp - 0x2b4]
push ebx
call dword [eax + 0x170]
cmp byte [esi + 0xd], 0
jne 0x40c429
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40c40e
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40c429
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40c402
jmp 0x40c429
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40c427
cmp esi, dword [eax + 8]
jne 0x40c427
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40c417
mov esi, eax
cmp esi, dword [edi + 0x40]
jne 0x40c3b4
mov ebx, dword [ebp - 0x2a0]
cmp ebx, 0xd
ja 0x40c7b2
mov ebx, dword [ebp - 0x298]
mov eax, ebx
mov edx, dword [ebp - 0x2b4]
shr eax, 0x10
cwde
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x2e0]
push eax
push 0
movsx ecx, bx
push 0x407
push dword [edi]
mov dword [ebp - 0x2e0], edx
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2d4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 0x2d0], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
call fcn.00415f20
xor esi, esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], esi
cmp ebx, 0x20a
jne 0x40c5a8
test eax, eax
jle 0x40c761
mov ecx, dword [edi + 0x10]
push esi
call fcn.00415eb0
mov ebx, eax
dec ebx
js 0x40c582
mov ecx, dword [edi + 0x10]
push ebx
push esi
call fcn.00415fa0
mov esi, eax
test esi, esi
je 0x40c575
push esi
call fcn.004127f0
test eax, eax
je 0x40c575
push esi
call fcn.00412850
test eax, eax
je 0x40c575
lea ecx, [ebp - 0x224]
call fcn.004132c0
mov eax, dword [esi]
lea ecx, [ebp - 0x224]
push ecx
push esi
call dword [eax + 0x5c]
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x224]
push dword [ebp - 0x2b0]
call fcn.00413270
test eax, eax
je 0x40c575
lea ecx, [ebp - 0x234]
call fcn.004132c0
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.00412700
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x234]
push dword [ebp - 0x2b0]
call fcn.00413270
test eax, eax
jne 0x40c59a
dec ebx
mov esi, dword [ebp - 0x2a4]
jns 0x40c4e7
inc esi
mov dword [ebp - 0x2a4], esi
cmp esi, dword [ebp - 0x2a0]
jl 0x40c4d5
jmp 0x40c761
cmp esi, dword [edi + 8]
je 0x40c761
jmp 0x40c75e
test eax, eax
jle 0x40c761
mov ecx, dword [edi + 0x10]
push esi
call fcn.00415eb0
mov ebx, eax
dec ebx
js 0x40c65d
mov ecx, dword [edi + 0x10]
push ebx
push esi
call fcn.00415fa0
mov esi, eax
test esi, esi
je 0x40c650
push esi
call fcn.004127f0
test eax, eax
je 0x40c650
push esi
call fcn.00412850
test eax, eax
je 0x40c650
lea ecx, [ebp - 0x224]
call fcn.004132c0
mov eax, dword [esi]
lea ecx, [ebp - 0x224]
push ecx
push esi
call dword [eax + 0x5c]
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x224]
push dword [ebp - 0x2b0]
call fcn.00413270
test eax, eax
je 0x40c650
lea ecx, [ebp - 0x234]
call fcn.004132c0
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.00412700
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x234]
push dword [ebp - 0x2b0]
call fcn.00413270
test eax, eax
jne 0x40c675
dec ebx
mov esi, dword [ebp - 0x2a4]
jns 0x40c5c2
inc esi
mov dword [ebp - 0x2a4], esi
cmp esi, dword [ebp - 0x2a0]
jl 0x40c5b0
jmp 0x40c761
mov ebx, dword [edi + 8]
cmp esi, ebx
je 0x40c761
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push ebx
call fcn.004127f0
test eax, eax
je 0x40c6f1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
test eax, eax
jne 0x40c6f1
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [ebx]
push edx
push ecx
push ebx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], edx
call dword [eax + 0x120]
push ebx
call fcn.004127f0
test eax, eax
je 0x40c6f1
push 0
push 0
push 4
mov ecx, ebx
call fcn.00411430
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40c75e
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40c75e
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x11c]
push esi
call fcn.004127f0
test eax, eax
je 0x40c75e
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 3
call fcn.00411430
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x20c]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40c7b2
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40c7b2
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ecx
call dword [eax + 0x138]
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
ja 0x40cc54
je 0x40cc2a
add eax, 0xfffffff1
cmp eax, 0xf2
ja case.0x40cdb7.518
movzx eax, byte [eax + 0x40d3d0]
jmp dword [eax*4 + 0x40d39c]
mov ebx, dword [ebp - 0x29c]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp ebx, 9
jne 0x40c806
push 0x10
call esi
cwde
test eax, 0xf0000000
jne 0x40c806
mov ecx, edi
call fcn.0040b750
push 0x10
call esi
cwde
test eax, 0xf0000000
je 0x40c81e
cmp ebx, 9
jne 0x40c81e
mov ecx, edi
call fcn.0040b5a0
push dword [edi + 4]
call fcn.004127f0
test eax, eax
je 0x40d345
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40d345
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40d345
mov edx, dword [ebp - 0x298]
mov eax, edx
mov ecx, dword [esi]
shr eax, 0x10
push eax
movzx eax, dx
push eax
push ebx
push esi
call dword [ecx + 0x150]
jmp 0x40d345
push dword [edi + 4]
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
mov ebx, dword [ebp - 0x29c]
test eax, eax
jne 0x40d345
mov edx, dword [ebp - 0x298]
mov eax, edx
mov ecx, dword [esi]
shr eax, 0x10
push eax
movzx eax, dx
push eax
push ebx
push esi
call dword [ecx + 0x154]
jmp 0x40d345
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x40c8fd
push eax
mov ecx, edi
call fcn.0040b2c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
push eax
mov ecx, edi
call fcn.0040b2c0
lea eax, [ebp - 0x294]
push eax
push ebx
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x298]
movsx edx, ax
shr eax, 0x10
movsx ecx, ax
mov eax, dword [edi + 0x10]
push ecx
mov dword [ebp - 0x2b0], edx
mov dword [ebp - 0x2ac], ecx
mov ecx, dword [eax + 0x18]
push edx
call fcn.00414980
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x298]
movzx eax, ax
cmp eax, 0xf
je 0x40ca3d
cmp eax, 0xc
je 0x40ca3d
cmp eax, 0x10
je 0x40ca36
cmp eax, 0xe
je 0x40ca36
cmp eax, 0x11
je 0x40ca2f
cmp eax, 0xd
je 0x40ca2f
cmp eax, 0xa
je 0x40ca28
cmp eax, 0xb
je 0x40ca28
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je 0x40c927
mov eax, dword [edi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
je 0x40ca09
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x174]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
push 0x7f84
jmp 0x40ca42
push 0x7f82
jmp 0x40ca42
push 0x7f83
jmp 0x40ca42
push 0x7f85
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x298]
movsx eax, cx
mov dword [ebp - 0x2b0], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ebx, dword [ebp - 0x29c]
cmp ebx, 0xd
je 0x40cac6
cmp ebx, 0xe
je 0x40cac6
cmp ebx, 0x10
je 0x40cac6
cmp ebx, 0x11
je 0x40cac6
cmp ebx, 0xc
je 0x40cac6
cmp ebx, 0xa
je 0x40cac6
cmp ebx, 0xb
je 0x40cac6
cmp ebx, 0xf
jne 0x40d345
mov esi, dword [ebp - 0x298]
lea eax, [ebx + 0xeff7]
push esi
push eax
push 0x112
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40d34b
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x298]
push esi
mov ecx, dword [ecx + 0x18]
call fcn.00414c70
mov ebx, dword [ebp - 0x29c]
jmp 0x40d34b
mov eax, dword [ebp - 0x298]
test byte [eax + 0x18], 1
jne 0x40c19b
push dword [eax + 0x14]
lea ecx, [ebp - 0x214]
push dword [eax + 0x10]
push 0
push 0
call fcn.00413100
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x214]
push ecx
mov esi, dword [eax + 0x18]
push esi
mov eax, dword [esi]
call dword [eax + 0xd0]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x114]
mov ecx, edi
call fcn.0040ae60
test eax, eax
je 0x40cb77
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, edi
push esi
call fcn.0040b2c0
push esi
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.0x40cdb7.518
mov ecx, esi
call fcn.00414eb0
jmp case.0x40cdb7.518
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp - 0x29c]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
test ebx, ebx
je 0x40cb99
push 0x1f
jmp 0x40cb9e
push 0x3d00
push ecx
call dword [eax + 0xc8]
push 1
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40d345
push dword [ebp - 0x298]
mov ebx, dword [ebp - 0x2b4]
push dword [ebp - 0x29c]
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_CallWindowProcW]
push str.SYSPLUGIN
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_RemovePropW]
mov ecx, dword [edi + 0x14]
push ebx
call fcn.00410510
mov ecx, edi
call fcn.00408800
push edi
call fcn.00450ad0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x29c]
mov eax, ebx
shr eax, 0x10
cmp eax, 0x100
jne 0x40d345
mov eax, dword [edi + 0x10]
mov ecx, edi
push 1
push dword [eax + 0x18]
call fcn.0040bd40
jmp 0x40d345
cmp eax, 0x201
ja 0x40cda0
je 0x40ccb3
mov ebx, dword [ebp - 0x29c]
cmp eax, 0x113
jne 0x40d345
mov ecx, edi
cmp ebx, dword [edi + 0x28]
jne 0x40cc83
call fcn.0040af70
jmp 0x40d345
push ebx
call fcn.0040ad70
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40d345
mov ecx, dword [esi]
push ebx
push esi
call dword [ecx + 0x158]
jmp 0x40d345
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004516c0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46ce08
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40ccfd
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cd79
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x124]
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 5
mov ecx, esi
call fcn.00411430
mov ecx, dword [edi + 8]
cmp dword [edi + 4], ecx
je case.0x40cdb7.518
mov eax, dword [edi + 0x10]
cmp ecx, dword [eax + 0x18]
je case.0x40cdb7.518
push 1
push ecx
mov ecx, edi
call fcn.0040bd40
jmp case.0x40cdb7.518
add eax, 0xfffffdfe
cmp eax, 0xa1
ja case.0x40cdb7.518
movzx eax, byte [eax + 0x40d4ec]
jmp dword [eax*4 + 0x40d4c4]
cmp dword [edi + 0xc], 0
je 0x40ce42
mov eax, dword [sym.imp.USER32.dll_GetCapture]
call eax
cmp eax, dword [edi + 0x18]
jne 0x40ce42
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x20c]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ecx
call dword [eax + 0x120]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push 0
push 0
push 4
jmp 0x40c18e
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je 0x40ceb6
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x20c]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40ceb6
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40ceb6
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ecx
call dword [eax + 0x120]
push esi
call fcn.004127f0
test eax, eax
je 0x40ceb6
push 0
push 0
push 4
mov ecx, esi
call fcn.00411430
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x18]
mov dword [edi + 8], eax
jmp case.0x40cdb7.518
mov ecx, dword [ebp - 0x298]
movsx eax, cx
mov dword [ebp - 0x2b0], eax
mov eax, ecx
shr eax, 0x10
cmp dword [edi + 0xc], 0
cwde
mov dword [ebp - 0x2ac], eax
je 0x40cf6f
mov eax, dword [sym.imp.USER32.dll_GetCapture]
call eax
cmp eax, dword [edi + 0x18]
jne 0x40cf6f
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c0c3
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x134]
push esi
call fcn.004127f0
test eax, eax
je case.default.0x40c0c3
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 9
jmp 0x40c18e
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cdb7.518
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x134]
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 9
call fcn.00411430
jmp case.0x40cdb7.518
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cdb7.518
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x128]
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 6
call fcn.00411430
jmp case.0x40cdb7.518
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004516c0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46ce08
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d0db
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cd79
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x13c]
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 0xa
jmp 0x40cd72
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004516c0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46ce08
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d1af
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cd79
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x12c]
push esi
call fcn.004127f0
test eax, eax
je 0x40cd79
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 7
jmp 0x40cd72
push dword [edi + 8]
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov esi, dword [edi + 8]
mov dword [ebp - 0x2a0], eax
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cdb7.518
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [esi]
push ecx
push ebx
push esi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ecx
call dword [eax + 0x130]
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 8
call fcn.00411430
jmp case.0x40cdb7.518
push dword [edi + 4]
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.00413170
push esi
call fcn.004127f0
test eax, eax
je case.0x40cdb7.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
mov ebx, dword [ebp - 0x29c]
test eax, eax
jne 0x40d345
mov eax, dword [ebp - 0x298]
mov edx, dword [esi]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x208], eax
mov eax, ebx
shr eax, 0x10
push ecx
cwde
push eax
movsx eax, bx
push eax
push esi
mov dword [ebp - 0x20c], ecx
call dword [edx + 0x140]
jmp 0x40d345
mov dword [edi + 0x50], 1
jmp case.0x40cdb7.518
mov dword [edi + 0x50], 0
mov ebx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x298]
push dword [ebp - 0x2b4]
call fcn.00413b30
test eax, eax
jne case.default.0x40c0c3
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045167e
mov esp, ebp
pop ebp
ret 0x10