Function at 0x4049f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x57bb30]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push edi
mov dword [esp + 0x10], ecx
cmp eax, 0x104
jne 0x404a24
cmp dword [ecx + 8], 0x73
je 0x404bb7
cmp eax, 0xa1
je 0x404a4b
cmp eax, 0xa0
je 0x404a4b
cmp eax, 0x202
je 0x404a4b
cmp eax, 0xa2
je 0x404a4b
cmp eax, 0x2a2
jne 0x404ff6
xor ebx, ebx
cmp esi, ebx
jne 0x404a55
xor eax, eax
jmp 0x404a58
mov eax, dword [esi + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
je 0x404ff6
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
mov edx, dword [0x5838a8]
mov edi, dword [0x5838a4]
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsIconic]
push 1
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
sub eax, edi
sub eax, 0xa
lea edx, [eax + edi]
add ecx, 4
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x4c], eax
sub eax, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], edx
lea edx, [eax + edi]
mov dword [esp + 0x2c], eax
sub eax, edi
mov dword [esp + 0x3c], eax
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
cmp eax, 0xa2
ja 0x404e9b
je 0x404eff
sub eax, 0xa0
je 0x404d59
dec eax
jne 0x404ff6
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404bd0
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00410712
mov dword [esi + 0xa4], 4
mov ecx, dword [0x58390c]
mov dword [esi + 0x134], ecx
mov ecx, esi
call fcn.00403f10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404c84
mov ecx, esi
call fcn.0041413a
test eax, 0x20000
je 0x404c6b
mov ecx, esi
call fcn.0041413a
test eax, eax
je 0x404c6b
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00410712
mov eax, dword [esi + 0x20]
push eax
mov dword [esi + 0xa4], 2
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x404c58
mov ecx, dword [0x5838f0]
mov dword [esi + 0x130], ecx
mov ecx, esi
call fcn.00403f10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x5838d4]
mov ecx, esi
mov dword [esi + 0x12c], edx
call fcn.00403f10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404d30
mov ecx, esi
call fcn.0041413a
test eax, 0x20000
je 0x404d17
mov ecx, esi
call fcn.0041413a
test eax, eax
je 0x404d17
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00410712
mov dword [esi + 0xa4], 1
cmp dword [esp + 0x14], ebx
je 0x404d04
mov ecx, dword [0x5838f0]
mov dword [esi + 0x130], ecx
mov ecx, esi
call fcn.00403f10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x5838b8]
mov ecx, esi
mov dword [esi + 0x128], edx
call fcn.00403f10
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0xa4], ebx
cmp dword [esp + 0x28], ebx
je 0x404ff6
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0xa8], ebx
jne 0x404d91
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0xa8], 1
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x12
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_TrackMouseEvent]
cmp dword [esi + 0xa4], ebx
jne 0x404ff6
mov edx, dword [0x583848]
mov dword [esi + 0x128], edx
mov eax, dword [0x583864]
mov dword [esi + 0x12c], eax
mov ecx, dword [0x583880]
mov dword [esi + 0x130], ecx
mov edx, dword [0x58389c]
mov dword [esi + 0x134], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404dfa
mov eax, dword [0x58397c]
mov ecx, esi
mov dword [esi + 0x134], eax
call fcn.00403f10
jmp 0x404ff6
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404e4e
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x404e37
mov edx, dword [0x583960]
mov ecx, esi
mov dword [esi + 0x130], edx
call fcn.00403f10
jmp 0x404ff6
mov eax, dword [0x583944]
mov ecx, esi
mov dword [esi + 0x12c], eax
call fcn.00403f10
jmp 0x404ff6
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404e8f
cmp dword [esp + 0x14], ebx
je 0x404e83
mov ecx, dword [0x583960]
mov dword [esi + 0x130], ecx
mov ecx, esi
call fcn.00403f10
jmp 0x404ff6
mov edx, dword [0x583928]
mov dword [esi + 0x128], edx
mov ecx, esi
call fcn.00403f10
jmp 0x404ff6
cmp eax, 0x202
je 0x404eff
cmp eax, 0x2a2
jne 0x404ff6
mov dword [esi + 0xa8], ebx
cmp dword [esi + 0xa4], ebx
jne 0x404ff6
mov eax, dword [0x583848]
mov dword [esi + 0x128], eax
mov ecx, dword [0x583864]
mov dword [esi + 0x12c], ecx
mov edx, dword [0x583880]
mov dword [esi + 0x130], edx
mov eax, dword [0x58389c]
mov ecx, esi
mov dword [esi + 0x134], eax
mov dword [esi + 0xa4], ebx
call fcn.00403f10
jmp 0x404ff6
cmp dword [esi + 0xa4], ebx
je 0x404f0d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404f44
cmp dword [esi + 0xa4], 4
jne 0x404ff0
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x404ff0
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404f8a
cmp dword [esi + 0xa4], 2
jne 0x404ff0
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, esi
test eax, eax
je 0x404f81
push 9
call fcn.00414291
jmp 0x404ff0
push 3
call fcn.00414291
jmp 0x404ff0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x404fbb
cmp dword [esi + 0xa4], 1
jne 0x404ff0
mov ecx, esi
cmp dword [esp + 0x14], ebx
jne 0x404f78
push 6
call fcn.00414291
jmp 0x404ff0
mov eax, dword [0x583848]
mov dword [esi + 0x128], eax
mov ecx, dword [0x583864]
mov dword [esi + 0x12c], ecx
mov edx, dword [0x583880]
mov dword [esi + 0x130], edx
mov eax, dword [0x58389c]
mov ecx, esi
mov dword [esi + 0x134], eax
call fcn.00403f10
mov dword [esi + 0xa4], ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00416a04
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050a0de
mov esp, ebp
pop ebp
ret 4