Function at 0x40bf40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x488580]
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.004131b0
lea ecx, [ebp - 0x224]
call fcn.004131b0
lea ecx, [ebp - 0x234]
call fcn.004131b0
lea ecx, [ebp - 0x244]
call fcn.004131b0
lea ecx, [ebp - 0x254]
call fcn.004131b0
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffe00
mov dword [ebp - 0x2a0], ebx
cmp ebx, 0xd
ja 0x40c317
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 0x40c317
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x18]
jne 0x40c317
cmp ebx, 5
ja case.default.0x40c033
jmp dword [ebx*4 + 0x40d2f4]
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.0x40c033
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 5
mov ecx, esi
call fcn.004114d0
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.00451043
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 6
jmp 0x40c0fe
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 0xa
jmp 0x40c0fe
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 7
jmp 0x40c0fe
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 8
jmp 0x40c0fe
mov eax, dword [edi + 0x40]
mov esi, dword [eax]
cmp esi, eax
je 0x40c3a4
mov ebx, dword [esi + 0x10]
push ebx
call fcn.004128a0
test eax, eax
je 0x40c359
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
test eax, eax
jne 0x40c359
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 0x40c399
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40c37e
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40c399
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40c372
jmp 0x40c399
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40c397
cmp esi, dword [eax + 8]
jne 0x40c397
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40c387
mov esi, eax
cmp esi, dword [edi + 0x40]
jne 0x40c324
mov ebx, dword [ebp - 0x2a0]
cmp ebx, 0xd
ja 0x40c722
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.00415f30
xor esi, esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], esi
cmp ebx, 0x20a
jne 0x40c518
test eax, eax
jle 0x40c6d1
mov ecx, dword [edi + 0x10]
push esi
call fcn.00415ec0
mov ebx, eax
dec ebx
js 0x40c4f2
mov ecx, dword [edi + 0x10]
push ebx
push esi
call fcn.00415fb0
mov esi, eax
test esi, esi
je 0x40c4e5
push esi
call fcn.004128a0
test eax, eax
je 0x40c4e5
push esi
call fcn.00412900
test eax, eax
je 0x40c4e5
lea ecx, [ebp - 0x224]
call fcn.00413370
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.00413320
test eax, eax
je 0x40c4e5
lea ecx, [ebp - 0x234]
call fcn.00413370
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.004127b0
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x234]
push dword [ebp - 0x2b0]
call fcn.00413320
test eax, eax
jne 0x40c50a
dec ebx
mov esi, dword [ebp - 0x2a4]
jns 0x40c457
inc esi
mov dword [ebp - 0x2a4], esi
cmp esi, dword [ebp - 0x2a0]
jl 0x40c445
jmp 0x40c6d1
cmp esi, dword [edi + 8]
je 0x40c6d1
jmp 0x40c6ce
test eax, eax
jle 0x40c6d1
mov ecx, dword [edi + 0x10]
push esi
call fcn.00415ec0
mov ebx, eax
dec ebx
js 0x40c5cd
mov ecx, dword [edi + 0x10]
push ebx
push esi
call fcn.00415fb0
mov esi, eax
test esi, esi
je 0x40c5c0
push esi
call fcn.004128a0
test eax, eax
je 0x40c5c0
push esi
call fcn.00412900
test eax, eax
je 0x40c5c0
lea ecx, [ebp - 0x224]
call fcn.00413370
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.00413320
test eax, eax
je 0x40c5c0
lea ecx, [ebp - 0x234]
call fcn.00413370
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.004127b0
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x234]
push dword [ebp - 0x2b0]
call fcn.00413320
test eax, eax
jne 0x40c5e5
dec ebx
mov esi, dword [ebp - 0x2a4]
jns 0x40c532
inc esi
mov dword [ebp - 0x2a4], esi
cmp esi, dword [ebp - 0x2a0]
jl 0x40c520
jmp 0x40c6d1
mov ebx, dword [edi + 8]
cmp esi, ebx
je 0x40c6d1
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.004131b0
push ebx
call fcn.004128a0
test eax, eax
je 0x40c661
mov eax, dword [ebx]
push ebx
call dword [eax + 0x44]
test eax, eax
jne 0x40c661
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.004128a0
test eax, eax
je 0x40c661
push 0
push 0
push 4
mov ecx, ebx
call fcn.004114d0
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x2a8]
mov ebx, dword [ebp - 0x2b0]
mov dword [ebp - 0x2a0], eax
call fcn.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40c6ce
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40c6ce
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.004128a0
test eax, eax
je 0x40c6ce
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 3
call fcn.004114d0
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40c722
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40c722
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 0x40cbc4
je 0x40cb9a
add eax, 0xfffffff1
cmp eax, 0xf2
ja case.0x40cd27.518
movzx eax, byte [eax + 0x40d340]
jmp dword [eax*4 + 0x40d30c]
mov ebx, dword [ebp - 0x29c]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
cmp ebx, 9
jne 0x40c776
push 0x10
call esi
cwde
test eax, 0xf0000000
jne 0x40c776
mov ecx, edi
call fcn.0040b6b0
push 0x10
call esi
cwde
test eax, 0xf0000000
je 0x40c78e
cmp ebx, 9
jne 0x40c78e
mov ecx, edi
call fcn.0040b500
push dword [edi + 4]
call fcn.004128a0
test eax, eax
je 0x40d2b5
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40d2b5
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40d2b5
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 0x40d2b5
push dword [edi + 4]
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
mov ebx, dword [ebp - 0x29c]
test eax, eax
jne 0x40d2b5
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 0x40d2b5
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x40c86d
push eax
mov ecx, edi
call fcn.0040b220
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451043
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.0040b220
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.00451043
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.00414970
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451043
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x298]
movzx eax, ax
cmp eax, 0xf
je 0x40c9ad
cmp eax, 0xc
je 0x40c9ad
cmp eax, 0x10
je 0x40c9a6
cmp eax, 0xe
je 0x40c9a6
cmp eax, 0x11
je 0x40c99f
cmp eax, 0xd
je 0x40c99f
cmp eax, 0xa
je 0x40c998
cmp eax, 0xb
je 0x40c998
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je 0x40c897
mov eax, dword [edi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
je 0x40c979
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.00451043
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.00451043
mov esp, ebp
pop ebp
ret 0x10
push 0x7f84
jmp 0x40c9b2
push 0x7f82
jmp 0x40c9b2
push 0x7f83
jmp 0x40c9b2
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.00451043
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 0x40ca36
cmp ebx, 0xe
je 0x40ca36
cmp ebx, 0x10
je 0x40ca36
cmp ebx, 0x11
je 0x40ca36
cmp ebx, 0xc
je 0x40ca36
cmp ebx, 0xa
je 0x40ca36
cmp ebx, 0xb
je 0x40ca36
cmp ebx, 0xf
jne 0x40d2b5
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 0x40d2bb
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x298]
push esi
mov ecx, dword [ecx + 0x18]
call fcn.00414c60
mov ebx, dword [ebp - 0x29c]
jmp 0x40d2bb
mov eax, dword [ebp - 0x298]
test byte [eax + 0x18], 1
jne 0x40c10b
push dword [eax + 0x14]
lea ecx, [ebp - 0x214]
push dword [eax + 0x10]
push 0
push 0
call fcn.004131f0
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.0040adb0
test eax, eax
je 0x40cae7
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, edi
push esi
call fcn.0040b220
push esi
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp case.0x40cd27.518
mov ecx, esi
call fcn.00414ea0
jmp case.0x40cd27.518
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp - 0x29c]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
test ebx, ebx
je 0x40cb09
push 0x1f
jmp 0x40cb0e
push 0x3d00
push ecx
call dword [eax + 0xc8]
push 1
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40d2b5
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.00410930
mov ecx, edi
call fcn.004087b0
push edi
call fcn.00450495
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451043
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.00451043
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x29c]
mov eax, ebx
shr eax, 0x10
cmp eax, 0x100
jne 0x40d2b5
mov eax, dword [edi + 0x10]
mov ecx, edi
push 1
push dword [eax + 0x18]
call fcn.0040bca0
jmp 0x40d2b5
cmp eax, 0x201
ja 0x40cd10
je 0x40cc23
mov ebx, dword [ebp - 0x29c]
cmp eax, 0x113
jne 0x40d2b5
mov ecx, edi
cmp ebx, dword [edi + 0x28]
jne 0x40cbf3
call fcn.0040aed0
jmp 0x40d2b5
push ebx
call fcn.0040acc0
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40d2b5
mov ecx, dword [esi]
push ebx
push esi
call dword [ecx + 0x158]
jmp 0x40d2b5
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00451090
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46dd58
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cc6d
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je 0x40cce9
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40cce9
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cce9
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.004128a0
test eax, eax
je 0x40cce9
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 5
mov ecx, esi
call fcn.004114d0
mov ecx, dword [edi + 8]
cmp dword [edi + 4], ecx
je case.0x40cd27.518
mov eax, dword [edi + 0x10]
cmp ecx, dword [eax + 0x18]
je case.0x40cd27.518
push 1
push ecx
mov ecx, edi
call fcn.0040bca0
jmp case.0x40cd27.518
add eax, 0xfffffdfe
cmp eax, 0xa1
ja case.0x40cd27.518
movzx eax, byte [eax + 0x40d45c]
jmp dword [eax*4 + 0x40d434]
cmp dword [edi + 0xc], 0
je 0x40cdb2
mov eax, dword [sym.imp.USER32.dll_GetCapture]
call eax
cmp eax, dword [edi + 0x18]
jne 0x40cdb2
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push 0
push 0
push 4
jmp 0x40c0fe
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je 0x40ce26
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40ce26
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40ce26
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.004128a0
test eax, eax
je 0x40ce26
push 0
push 0
push 4
mov ecx, esi
call fcn.004114d0
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x18]
mov dword [edi + 8], eax
jmp case.0x40cd27.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 0x40cedf
mov eax, dword [sym.imp.USER32.dll_GetCapture]
call eax
cmp eax, dword [edi + 0x18]
jne 0x40cedf
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.default.0x40c033
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.default.0x40c033
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.004128a0
test eax, eax
je case.default.0x40c033
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 9
jmp 0x40c0fe
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je case.0x40cd27.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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cd27.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.004128a0
test eax, eax
je case.0x40cd27.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 9
call fcn.004114d0
jmp case.0x40cd27.518
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je case.0x40cd27.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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cd27.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.004128a0
test eax, eax
je case.0x40cd27.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 6
call fcn.004114d0
jmp case.0x40cd27.518
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00451090
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46dd58
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d04b
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je 0x40cce9
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40cce9
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cce9
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.004128a0
test eax, eax
je 0x40cce9
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 0xa
jmp 0x40cce2
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00451090
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x46dd58
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d11f
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je 0x40cce9
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.004131b0
push esi
call fcn.004128a0
test eax, eax
je 0x40cce9
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne 0x40cce9
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.004128a0
test eax, eax
je 0x40cce9
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
push 7
jmp 0x40cce2
push dword [edi + 8]
call fcn.004128a0
test eax, eax
je case.0x40cd27.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.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
test eax, eax
jne case.0x40cd27.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.004128a0
test eax, eax
je case.0x40cd27.518
push dword [ebp - 0x2a4]
mov ecx, esi
push dword [ebp - 0x2a8]
push 8
call fcn.004114d0
jmp case.0x40cd27.518
push dword [edi + 4]
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x20c]
call fcn.004131b0
push esi
call fcn.004128a0
test eax, eax
je case.0x40cd27.518
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
mov ebx, dword [ebp - 0x29c]
test eax, eax
jne 0x40d2b5
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 0x40d2b5
mov dword [edi + 0x50], 1
jmp case.0x40cd27.518
mov dword [edi + 0x50], 0
mov ebx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x298]
push dword [ebp - 0x2b4]
call fcn.00413be0
test eax, eax
jne case.default.0x40c033
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.00451043
mov esp, ebp
pop ebp
ret 0x10