Function at 0x59a580
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x619358
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x6f2e9c]
lea eax, [esp + 0x38]
push eax
push esi
push ecx
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], ebp
call fcn.005ab5e0
mov edi, dword [esp + 0x1e8]
mov ecx, dword [edi + 8]
mov edx, dword [0x6f2e9c]
mov eax, ecx
mov dword [esp + 0x1dc], ebp
mov ebx, edx
cmp eax, 0xfffffff4
ja 0x59ab66
je 0x59a9db
add eax, 0x212
cmp eax, 0x81
ja case.0x59a60c.529
movzx eax, byte [eax + 0x59afb4]
jmp dword [eax*4 + 0x59af78]
mov ebx, dword [0x6f7df0]
cmp ebx, edx
jne 0x59a623
mov ebx, dword [0x6f7df4]
mov ecx, dword [edi + 0x3c]
mov eax, dword [edi + 0x64]
mov dword [esp + 0xc0], ecx
mov ecx, dword [edi + 0x60]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
mov byte [esp + 0x7c], 0
jmp 0x59a6ea
mov eax, dword [edi + 0x10]
mov ebx, dword [0x6f7df8]
mov dword [esp + 0xc0], eax
mov dword [esi + 0x168], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050fe00
mov byte [esp + 0xd4], 0
jmp 0x59a6ea
cmp byte [esi + 0x17c], 0
mov eax, dword [edi + 0x14]
mov ebx, dword [0x6f7e00]
mov dword [esp + 0xc0], eax
je 0x59a6ea
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x20]
lea ebp, [esi + 0x16c]
push eax
mov ecx, ebp
call fcn.005b3980
cmp dword [esp + 0x1c], 0
je 0x59a6e8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x59a6d9
mov ecx, eax
call fcn.0059b5f0
mov edx, dword [esp + 0x14]
push edx
call fcn.005b4dd1
add esp, 4
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
mov ecx, ebp
call fcn.00599250
xor ebp, ebp
mov dword [esp + 0x50], ebx
cmp dword [esp + 0xc0], ebp
je 0x59a70f
mov edx, dword [esi]
mov edx, dword [edx + 0x2e0]
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x78], eax
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x44]
push edx
call eax
mov bl, al
mov eax, dword [edi + 8]
cmp eax, 0xfffffe62
ja 0x59aeea
je 0x59aed2
add eax, 0x1cc
cmp eax, 0xa
ja case.0x59a742.453
jmp dword [eax*4 + 0x59b038]
mov eax, dword [edi + 0x10]
mov ebx, dword [0x6f7dfc]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0xd4]
call fcn.0050fe00
cmp dword [edi + 0x1c], ebp
sete cl
mov byte [esp + 0xd4], cl
jmp 0x59a6ea
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x59a6ea
mov eax, dword [edi + 0x14]
mov ebx, dword [0x6f7e3c]
mov dword [esp + 0xc0], eax
jmp 0x59a6ea
mov ebx, dword [0x6f7e04]
cmp ebx, edx
jne 0x59a7ae
mov ebx, dword [0x6f7e08]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xc0], ecx
jmp 0x59a6ea
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x59a7cd
dec eax
mov edx, 1
jmp 0x59a7cf
xor edx, edx
xor eax, eax
cmp ecx, 0xfffffe3a
sete al
lea edx, [eax + edx*2]
mov eax, dword [edi + 0x3c]
mov ebx, dword [edx*4 + 0x6f7c58]
mov dword [esp + 0xc0], eax
jmp 0x59a6ea
mov ebx, dword [0x6f7e24]
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
movzx ebp, al
neg ebp
mov byte [esp + 0x1b], al
movzx eax, word [edi + 0xc]
sbb ebp, ebp
push 0
and ebp, 0x2000
push eax
shl ebp, 0x10
mov dword [esp + 0x1c], eax
call fcn.0054d930
add esp, 8
test eax, eax
jne 0x59a836
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6f5c0c]
push ecx
push ebp
push eax
push edx
lea eax, [esp + 0x110]
push eax
mov ecx, esi
call fcn.00553070
push eax
lea ecx, [esp + 0x84]
call fcn.00597730
lea ecx, [esp + 0x100]
mov dword [esp + 0x100], vtable.wxObject.0
call fcn.00511800
call fcn.0054dfb0
test al, al
jne 0x59a6e8
call fcn.0054df90
test al, al
jne 0x59a6e8
cmp byte [esp + 0x1b], al
jne 0x59a6e8
movzx eax, word [edi + 0xc]
cmp ax, 0x20
je 0x59a8af
cmp ax, 0xd
jne 0x59a6e8
mov ecx, dword [esi + 0xcc]
shr ecx, 5
mov dword [esp + 0x14], 0
test cl, 1
jne 0x59a8dc
mov edx, dword [esi]
mov edx, dword [edx + 0x330]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov edx, dword [0x6f7e28]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x14c]
call fcn.005ab5e0
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x140]
push edx
mov byte [esp + 0x1e0], 1
call eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x1dc], 0
call fcn.00599980
jmp 0x59a6e8
mov ecx, dword [esi + 0xcc]
shr ecx, 5
test cl, 1
je 0x59a96e
mov edx, dword [edi + 0x10]
push edx
call fcn.005973d0
add esp, 4
test al, al
je 0x59a96e
mov eax, dword [esp + 0x1ec]
mov dword [eax], 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00599980
mov al, 1
jmp 0x59af5a
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00599980
xor al, al
jmp 0x59af5a
mov ebx, dword [0x6f7e1c]
cmp ebx, edx
jne 0x59a999
mov ebx, dword [0x6f7e20]
cmp ecx, 0xfffffe3e
je 0x59a9c2
cmp ecx, 0xfffffe3d
je 0x59a9c2
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x14]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
jmp 0x59a6ea
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
jmp 0x59a6ea
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x59ab4a
sub eax, 0x10000
jne 0x59aa12
mov ebx, dword [edi + 0x24]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x16c]
mov dword [esp + 0x1c], ebx
call fcn.005b3980
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x59aa20
mov edx, dword [esp + 0x1ec]
mov dword [edx], ebp
jmp 0x59a953
mov ebp, dword [eax + 8]
push 8
push 8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0x20], ebx
call fcn.005973f0
lea ecx, [esp + 0xd8]
push ecx
mov ecx, esi
call fcn.00597c60
test byte [edi + 0x28], 1
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
jne 0x59aab3
test al, 8
jne 0x59aaad
lea ecx, [esp + 0x1c]
call fcn.0053ac50
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x20]
lea ebx, [ebp + 0x14]
mov ecx, ebx
mov byte [esp + 0x1dc], 2
call eax
test al, al
je 0x59aa9c
push ebx
lea ecx, [esp + 0x20]
call fcn.0040c35f
lea ecx, [esp + 0x1c]
push ecx
call fcn.0054df20
add esp, 4
mov dword [edi + 0x34], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.0055bd20
test byte [edi + 0x28], 1
je 0x59aabc
call fcn.00557c30
cmp eax, esi
je 0x59ab0d
test byte [esp + 0x14], 8
jne 0x59ab0d
lea ecx, [esp + 0x1c]
call fcn.0053ac50
mov edx, dword [ebp]
mov eax, dword [edx + 0x20]
mov ecx, ebp
mov byte [esp + 0x1dc], 3
call eax
test al, al
je 0x59aafc
push ebp
lea ecx, [esp + 0x20]
call fcn.0040c35f
lea ecx, [esp + 0x1c]
push ecx
call fcn.0054df20
add esp, 4
mov dword [edi + 0x30], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1dc], 0
call fcn.0055bd20
cmp dword [ebp + 0x2c], 0
je 0x59ab38
lea ecx, [ebp + 0x28]
call fcn.0054ba40
mov edx, dword [edi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1ec]
mov dword [eax], 2
jmp 0x59a953
mov ecx, dword [esp + 0x1ec]
mov dword [ecx], 0
jmp 0x59a953
movzx edx, byte [esi + 0x17c]
mov eax, dword [esp + 0x1ec]
neg edx
sbb edx, edx
and edx, 0x20
mov dword [eax], edx
jmp 0x59a953
cmp eax, 0xfffffffb
je 0x59abfd
cmp eax, 0xfffffffd
je 0x59abfd
cmp eax, 0xfffffffe
jne case.0x59a60c.529
call dword [sym.imp.USER32.dll_GetMessagePos]
movzx ecx, ax
shr eax, 0x10
push 1
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x114]
push edx
push eax
push ebp
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x3b0]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call edx
test dword [esp + 0x14], 0x100
je 0x59a6e8
mov eax, dword [esp + 0x34]
mov ebx, dword [0x6f7e38]
mov dword [esp + 0xc0], eax
jmp 0x59a6ea
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x1111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je case.0x59a60c.529
test byte [esp + 0x24], 0x46
je 0x59a6e8
cmp dword [edi + 8], 0xfffffffd
mov edx, dword [esp + 0x28]
mov ebx, dword [0x6f7e28]
mov dword [esp + 0xc0], edx
je 0x59ac62
mov ebx, dword [0x6f7e2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
jmp 0x59a6ea
cmp byte [esp + 0x7c], 0
je case.0x59a742.453
push 0x38
call fcn.005b4e59
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 4
cmp eax, ebp
je 0x59acb4
lea ecx, [esp + 0xc0]
push ecx
push esi
mov ecx, eax
call fcn.005978d0
jmp 0x59acb6
xor eax, eax
push ebp
push ebp
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x1ec], 0
mov dword [esi + 0x180], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.005abb70
mov ecx, dword [esi + 0x180]
call fcn.005abaa0
jmp case.0x59a742.453
mov edi, dword [edi + 0x34]
cmp edi, ebp
je 0x59acfc
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov bl, 1
jmp case.0x59a742.453
mov al, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
xor ecx, ecx
test al, al
sete cl
mov dword [edx], ecx
test al, al
je 0x59ade0
mov eax, dword [esi + 0x114]
push ebp
push ebp
push 0x110f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, ebp
je case.0x59a742.453
mov eax, dword [esi + 0x164]
cmp eax, ebp
je 0x59ad56
cmp dword [eax + 0x114], ebp
je 0x59ad56
mov ecx, esi
call fcn.00598cf0
cmp dword [esi + 0x164], ebp
jne 0x59ad94
push 0x1b4
call fcn.005b4e59
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1dc], 5
cmp eax, ebp
je 0x59ad84
mov ecx, eax
call fcn.0055cb10
jmp 0x59ad86
xor eax, eax
mov byte [esp + 0x1dc], 0
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x164]
mov dword [eax + 0x2c], esi
mov eax, dword [esi + 0x164]
mov dword [eax + 0x114], edi
mov ecx, dword [esi + 0x164]
push edi
call fcn.005535c0
mov ecx, dword [esi + 0x164]
mov eax, dword [ecx]
mov edx, dword [eax + 0xb0]
call edx
mov ecx, dword [esi + 0x164]
mov edx, dword [ecx]
or eax, 0x400
push eax
mov eax, dword [edx + 0xac]
call eax
jmp case.0x59a742.453
mov dword [esi + 0x168], ebp
jmp case.0x59a742.453
movzx ecx, byte [esp + 0x7c]
mov edx, dword [esp + 0x1ec]
mov dword [edx], ecx
mov ecx, esi
mov bl, 1
call fcn.00598cf0
jmp case.0x59a742.453
mov ecx, dword [esp + 0x1ec]
xor eax, eax
cmp byte [esp + 0x7c], al
sete al
mov dword [ecx], eax
jmp case.0x59a742.453
mov edx, dword [edi + 0x3c]
mov eax, dword [esi]
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2dc]
push ecx
mov ecx, esi
call edx
cmp eax, 0xffffffff
je case.0x59a742.453
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00598240
jmp case.0x59a742.453
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.00598010
mov ebp, eax
test ebp, ebp
je case.0x59a742.453
test byte [edi + 0xc], 2
je 0x59ae9f
mov eax, dword [esi]
mov edx, dword [eax + 0x31c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
push eax
mov ecx, ebp
call fcn.00597430
mov dword [edi + 0x24], eax
test byte [edi + 0xc], 0x20
je case.0x59a742.453
mov edx, dword [esi]
mov edx, dword [edx + 0x31c]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
mov ecx, ebp
call fcn.00597430
mov dword [edi + 0x28], eax
jmp case.0x59a742.453
cmp byte [esp + 0x7c], 0
je case.0x59a742.453
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.00558a10
jmp case.0x59a742.453
cmp eax, 0xfffffffb
je 0x59af02
cmp eax, 0xfffffffd
jne case.0x59a742.453
mov ecx, dword [esp + 0x1ec]
movzx eax, bl
mov dword [ecx], eax
jmp case.0x59a742.453
mov edx, dword [esp + 0x1ec]
mov dword [edx], 1
mov esi, dword [esi + 0x114]
mov bl, 1
call dword [sym.imp.USER32.dll_GetMessagePos]
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x59a742.453
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1e4]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0056f970
mov bl, al
lea ecx, [esp + 0x44]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00599980
mov al, bl
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret 0xc