Function at 0x598559
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x70d05c]
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 0x597fcd
mov dword [ebp - 0x90], 0
jmp 0x597ff1
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx + 0xb7c]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.0052b630
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x59800c
mov dword [ebp - 0x94], 0
jmp 0x598029
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433f70
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 0x598077
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x598070
mov dword [ebp + 8], 0x26
jmp 0x598077
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.0x5980af.1
mov edx, dword [ebp - 0x98]
movzx eax, byte [edx + 0x598934]
jmp dword [eax*4 + 0x598918]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x18]
push ecx
push 0x70b454
call fcn.0044e7b0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x598139
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 0x598101
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 0x598139
push 0
push 0xe001
push 0x362
mov ecx, dword [ebp - 0x8c]
call fcn.004358b0
mov ecx, eax
call fcn.00435930
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 0x598776
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0xd08], 0
je 0x59817a
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00499fd0
cmp dword [ebp - 0x14], eax
jne 0x59817a
cmp dword [ebp + 8], 0x24
je 0x59817a
mov eax, 1
jmp 0x598906
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004a7500
test eax, eax
je 0x59819b
jmp 0x598776
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x5981bc
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433e50
cmp dword [ebp - 0x28], 0
jne 0x5981df
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00449830
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
jmp 0x5981e8
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 0x59829f
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.00433e50
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.0044e820
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x24]
and ecx, 1
jne 0x598257
mov ecx, dword [ebp - 0x2c]
call fcn.004bbbd0
mov ecx, eax
call fcn.0063b740
test eax, eax
jne 0x598257
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x20], 0xfffffffe
je 0x598257
jmp 0x59829f
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x28], 0
jne 0x59829a
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd08], 0
je 0x59827f
mov eax, 1
jmp 0x598906
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00449830
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
jmp 0x5981ef
cmp dword [ebp - 0x24], 0
je 0x5982c6
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433f70
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x598776
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd08], 0
je 0x598307
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00449830
cmp dword [ebp - 0x14], eax
jne 0x598307
cmp dword [ebp + 8], 0x23
je 0x598307
mov eax, 1
jmp 0x598906
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.004a7500
test eax, eax
je 0x598328
jmp 0x598776
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x598349
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433f10
cmp dword [ebp - 0x34], 0
jne 0x59837c
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00499fd0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00584010
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x598385
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 0x59844c
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.00433f10
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.0044e820
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x24]
and edx, 1
jne 0x5983f4
mov ecx, dword [ebp - 0x38]
call fcn.004bbbd0
mov ecx, eax
call fcn.0063b740
test eax, eax
jne 0x5983f4
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x20], 0xfffffffe
je 0x5983f4
jmp 0x59844c
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x34], 0
jne 0x598447
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xd08], 0
je 0x59841c
mov eax, 1
jmp 0x598906
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00499fd0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00584010
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x59838c
cmp dword [ebp - 0x30], 0
je 0x598473
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433f70
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
jmp 0x598776
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0xd08], 0
je 0x598554
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0xd0c], 0
jle 0x598554
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 0x5984cf
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 0x598506
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 0x5984c6
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 0x59854a
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 0x598906
jmp 0x598776
call fcn.004bced0
test eax, eax
jne 0x598776
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
jne 0x598776
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e34c0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x4c], 0
je 0x59859e
mov eax, dword [ebp + 8]
push eax
call fcn.004e3580
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x4c], 0
je 0x59871f
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x8c]
add ecx, 0xcac
call fcn.004e43d0
test eax, eax
je 0x59871f
push 0x514
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 0x44]
push eax
call fcn.0044e820
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.00449830
mov dword [ebp - 0x58], eax
jmp 0x598608
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x58], 0
je 0x59866f
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00433e50
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 0x59864e
push 0x51d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.0044f2e0
test eax, eax
je 0x59864e
int3
cmp dword [ebp - 0x60], 0
jne 0x598659
call fcn.00421e50
xor ecx, ecx
jne 0x598628
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x44]
jne 0x59866d
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
jmp 0x59866f
jmp 0x5985ff
mov ecx, dword [ebp - 0x44]
push ecx
push 0x70b454
call fcn.0044e7b0
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x59871d
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 0x5986c8
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x8c], 0
je 0x5986c6
push 0
push 0x24
push 0x100
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx + 0x8c]
call fcn.00435930
jmp 0x59871d
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x24]
and eax, 0x40000
je 0x5986f0
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov ecx, dword [ebp - 0x8c]
call fcn.00595d00
mov eax, 1
jmp 0x598906
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 0x59871d
mov eax, 1
jmp 0x598906
jmp 0x598776
cmp dword [0x70b5bc], 0
je 0x598776
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xcf0], 0
jne 0x598776
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.0049a2a0
test eax, eax
je 0x598776
push 0
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00595d00
mov eax, 1
jmp 0x598906
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x18]
je 0x598903
push 0x554
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 4]
push eax
call fcn.0044e820
cmp dword [ebp - 0x1c], 0
jl 0x5987b1
mov ecx, dword [ebp - 0x8c]
add ecx, 0xbc8
call fcn.00584010
cmp dword [ebp - 0x1c], eax
jl 0x5987c5
push 0x555
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.0044f2e0
test eax, eax
je 0x5987c5
int3
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.004bd0e0
cmp eax, dword [ebp - 4]
je 0x5987ed
push 0x556
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.0044f2e0
test eax, eax
je 0x5987ed
int3
cmp dword [ebp - 8], 0
je 0x59881c
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0xd10], 0
jne 0x59881c
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.004bced0
test eax, eax
je 0x598834
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.00422d10
lea ecx, [ebp - 0x88]
call fcn.00434360
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.00435d80
mov ecx, dword [ebp - 4]
call fcn.004bbbd0
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 0x598897
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x7c]
jle 0x598899
jmp 0x5988dd
cmp dword [ebp - 0x18], 0
je 0x5988bc
push 1
mov ecx, dword [ebp - 0x18]
call fcn.004bbbd0
mov ecx, eax
call fcn.00434360
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.004360e0
push 1
lea ecx, [ebp - 0x78]
call fcn.00434360
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.004360e0
mov ecx, dword [ebp - 0x8c]
call fcn.00435fb0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0xffffffff
je 0x598903
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.0060eea0
mov esp, ebp
pop ebp
ret 4