Function at 0x5a0e89
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6e5134]
xor eax, ebp
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0xb7c], 0
jge 0x5a08fd
mov dword [ebp - 0x90], 0
jmp 0x5a0921
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0xb7c]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00534090
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a093c
mov dword [ebp - 0x94], 0
jmp 0x5a0959
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430720
mov edx, dword [eax]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0xb7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 9
jne 0x5a09a7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x5a09a0
mov dword [ebp + 8], 0x26
jmp 0x5a09a7
mov dword [ebp + 8], 0x28
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
sub ecx, 0xd
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 0x1b
ja case.0x5a09df.1
mov edx, dword [ebp - 0x98]
movzx eax, byte [edx + 0x5a1264]
jmp dword [eax*4 + 0x5a1248]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x18]
push ecx
push 0x6e32c4
call fcn.00458180
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5a0a69
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0xf4]
call edx
test eax, eax
jne 0x5a0a31
push 0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0xd0]
call eax
test eax, eax
jne 0x5a0a69
push 0
push 0xe001
push 0x362
mov ecx, dword [ebp - 0x8c]
call fcn.00432360
mov ecx, eax
call fcn.004323e0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x3ec]
call edx
jmp 0x5a10a6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0xd08], 0
je 0x5a0aaa
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430350
cmp dword [ebp - 0x14], eax
jne 0x5a0aaa
cmp dword [ebp + 8], 0x24
je 0x5a0aaa
mov eax, 1
jmp 0x5a1236
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005d8470
test eax, eax
je 0x5a0acb
jmp 0x5a10a6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x5a0aec
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430600
cmp dword [ebp - 0x28], 0
jne 0x5a0b0f
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005732a0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
jmp 0x5a0b18
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x10]
je 0x5a0bcf
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430600
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
push 0x48f
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004581f0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x24]
and ecx, 1
jne 0x5a0b87
mov ecx, dword [ebp - 0x2c]
call fcn.004c43b0
mov ecx, eax
call fcn.00651930
test eax, eax
jne 0x5a0b87
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x20], 0xfffffffe
je 0x5a0b87
jmp 0x5a0bcf
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x28], 0
jne 0x5a0bca
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd08], 0
je 0x5a0baf
mov eax, 1
jmp 0x5a1236
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005732a0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
jmp 0x5a0b1f
cmp dword [ebp - 0x24], 0
je 0x5a0bf6
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430720
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x5a10a6
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd08], 0
je 0x5a0c37
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005732a0
cmp dword [ebp - 0x14], eax
jne 0x5a0c37
cmp dword [ebp + 8], 0x23
je 0x5a0c37
mov eax, 1
jmp 0x5a1236
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005d8470
test eax, eax
je 0x5a0c58
jmp 0x5a10a6
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x5a0c79
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004306c0
cmp dword [ebp - 0x34], 0
jne 0x5a0cac
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430350
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004302f0
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x5a0cb5
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x10]
je 0x5a0d7c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004306c0
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
push 0x4d2
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 0x38]
push eax
call fcn.004581f0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x24]
and edx, 1
jne 0x5a0d24
mov ecx, dword [ebp - 0x38]
call fcn.004c43b0
mov ecx, eax
call fcn.00651930
test eax, eax
jne 0x5a0d24
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x20], 0xfffffffe
je 0x5a0d24
jmp 0x5a0d7c
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x34], 0
jne 0x5a0d77
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xd08], 0
je 0x5a0d4c
mov eax, 1
jmp 0x5a1236
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430350
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004302f0
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x5a0cbc
cmp dword [ebp - 0x30], 0
je 0x5a0da3
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430720
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
jmp 0x5a10a6
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xd08], 0
je 0x5a0e84
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0xd0c], 0
jle 0x5a0e84
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0xd10], 1
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0xb7c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
jmp 0x5a0dff
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 0xd0c]
jge 0x5a0e36
xor ecx, ecx
cmp dword [ebp + 8], 0x21
setne cl
lea ecx, [ecx + ecx + 0x26]
push ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x404]
call edx
jmp 0x5a0df6
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0xd10], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 0xb7c]
je 0x5a0e7a
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0xb7c]
push ecx
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x260]
call edx
mov eax, 1
jmp 0x5a1236
jmp 0x5a10a6
call fcn.004c5690
test eax, eax
jne 0x5a10a6
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
jne 0x5a10a6
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ec650
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x4c], 0
je 0x5a0ece
mov eax, dword [ebp + 8]
push eax
call fcn.004ec710
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x4c], 0
je 0x5a104f
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xcac
call fcn.004d4080
test eax, eax
je 0x5a104f
push 0x514
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 0x44]
push eax
call fcn.004581f0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.005732a0
mov dword [ebp - 0x58], eax
jmp 0x5a0f38
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x58], 0
je 0x5a0f9f
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00430600
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
xor edx, edx
cmp dword [ebp - 0x5c], 0
setne dl
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
jne 0x5a0f7e
push 0x51d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.00458050
test eax, eax
je 0x5a0f7e
int3
cmp dword [ebp - 0x60], 0
jne 0x5a0f89
call fcn.00458030
xor ecx, ecx
jne 0x5a0f58
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x44]
jne 0x5a0f9d
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
jmp 0x5a0f9f
jmp 0x5a0f2f
mov ecx, dword [ebp - 0x44]
push ecx
push 0x6e32c4
call fcn.00458180
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x5a104d
push 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0xd0]
call edx
test eax, eax
je 0x5a0ff8
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x8c], 0
je 0x5a0ff6
push 0
push 0x24
push 0x100
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 0x8c]
call fcn.004323e0
jmp 0x5a104d
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x24]
and eax, 0x40000
je 0x5a1020
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov ecx, dword [ebp - 0x8c]
call fcn.0059e630
mov eax, 1
jmp 0x5a1236
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x3ec]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a104d
mov eax, 1
jmp 0x5a1236
jmp 0x5a10a6
cmp dword [0x6e342c], 0
je 0x5a10a6
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xcf0], 0
jne 0x5a10a6
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xd3c
call fcn.004a00f0
test eax, eax
je 0x5a10a6
push 0
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0059e630
mov eax, 1
jmp 0x5a1236
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x18]
je 0x5a1233
push 0x554
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 4]
push eax
call fcn.004581f0
cmp dword [ebp - 0x1c], 0
jl 0x5a10e1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004302f0
cmp dword [ebp - 0x1c], eax
jl 0x5a10f5
push 0x555
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.00458050
test eax, eax
je 0x5a10f5
int3
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.004c58a0
cmp eax, dword [ebp - 4]
je 0x5a111d
push 0x556
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.00458050
test eax, eax
je 0x5a111d
int3
cmp dword [ebp - 8], 0
je 0x5a114c
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd10], 0
jne 0x5a114c
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x260]
call eax
call fcn.004c5690
test eax, eax
je 0x5a1164
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xb80], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xb7c], ecx
lea ecx, [ebp - 0x88]
call fcn.006539a0
lea ecx, [ebp - 0x88]
call fcn.00430b10
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00432830
mov ecx, dword [ebp - 4]
call fcn.004c43b0
mov edx, dword [eax]
mov dword [ebp - 0x78], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x74], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x70], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0x84]
jl 0x5a11c7
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x7c]
jle 0x5a11c9
jmp 0x5a120d
cmp dword [ebp - 0x18], 0
je 0x5a11ec
push 1
mov ecx, dword [ebp - 0x18]
call fcn.004c43b0
mov ecx, eax
call fcn.00430b10
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00432b90
push 1
lea ecx, [ebp - 0x78]
call fcn.00430b10
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00432b90
mov ecx, dword [ebp - 0x8c]
call fcn.00432a60
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0xffffffff
je 0x5a1233
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x41c]
call eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x68]
xor ecx, ebp
call fcn.0061eb40
mov esp, ebp
pop ebp
ret 4