Function at 0x5f6f0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push ecx
lea edi, [ebp - 0x104]
mov ecx, 0x41
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x82be68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xbf0], 0
jge 0x5f690b
mov dword [ebp - 0xd0], 0
jmp 0x5f6929
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xbf0]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.004d9830
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5f6944
mov dword [ebp - 0xd4], 0
jmp 0x5f695e
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.004079b0
mov edx, dword [eax]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xbf0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 9
jne 0x5f69b2
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00710bc0
movsx ecx, ax
and ecx, 0x80
je 0x5f69ab
mov dword [ebp + 8], 0x26
jmp 0x5f69b2
mov dword [ebp + 8], 0x28
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
sub ecx, 0xd
mov dword [ebp - 0xd8], ecx
cmp dword [ebp - 0xd8], 0x1b
ja case.0x5f69ea.1
mov edx, dword [ebp - 0xd8]
movzx eax, byte [edx + 0x5f7478]
jmp dword [eax*4 + 0x5f745c]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x14]
push ecx
push 0x82b97c
call fcn.0044ef60
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5f6ae7
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0xdc], ecx
mov edi, esp
mov ecx, dword [ebp - 0xdc]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 0x28]
call dword [ebp - 0xdc]
cmp esi, esp
call fcn.00710bc0
test eax, eax
jne 0x5f6a90
mov esi, esp
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [eax + 0xd4]
mov dword [ebp - 0xe0], ecx
mov edi, esp
mov ecx, dword [ebp - 0xe0]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 0x28]
call dword [ebp - 0xe0]
cmp esi, esp
call fcn.00710bc0
test eax, eax
jne 0x5f6ae7
push 0
push 0xe001
push 0x362
mov ecx, dword [ebp - 8]
call fcn.00421860
mov ecx, eax
call fcn.00423020
mov esi, esp
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3f0]
mov dword [ebp - 0xe4], edx
mov edi, esp
mov ecx, dword [ebp - 0xe4]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0xe4]
cmp esi, esp
call fcn.00710bc0
jmp 0x5f71ba
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd80], 0
je 0x5f6b22
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407de0
cmp dword [ebp - 0x24], eax
jne 0x5f6b22
cmp dword [ebp + 8], 0x24
je 0x5f6b22
mov eax, 1
jmp 0x5f738b
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408670
test eax, eax
je 0x5f6b40
jmp 0x5f71ba
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x5f6b5e
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408050
cmp dword [ebp - 0x30], 0
jne 0x5f6b7e
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e40
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
jmp 0x5f6b87
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x10]
je 0x5f6c35
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408050
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
push 0x4ac
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0044ed60
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x24]
and ecx, 1
jne 0x5f6bf3
mov ecx, dword [ebp - 0x3c]
call fcn.004dc900
mov ecx, eax
call fcn.00436c30
test eax, eax
jne 0x5f6bf3
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x20], 0xfffffffe
je 0x5f6bf3
jmp 0x5f6c35
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], 0
jne 0x5f6c30
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xd80], 0
je 0x5f6c18
mov eax, 1
jmp 0x5f738b
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e40
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
jmp 0x5f6b8e
cmp dword [ebp - 0x38], 0
je 0x5f6c59
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.004079b0
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 1
jmp 0x5f71ba
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xd80], 0
je 0x5f6c94
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e40
cmp dword [ebp - 0x24], eax
jne 0x5f6c94
cmp dword [ebp + 8], 0x23
je 0x5f6c94
mov eax, 1
jmp 0x5f738b
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408670
test eax, eax
je 0x5f6cb2
jmp 0x5f71ba
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x5f6cd0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408390
cmp dword [ebp - 0x44], 0
jne 0x5f6cfd
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407de0
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e00
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x5f6d06
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x10]
je 0x5f6dc1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408390
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
push 0x4ef
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov eax, dword [ebp - 0x50]
push eax
call fcn.0044ed60
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x24]
and edx, 1
jne 0x5f6d72
mov ecx, dword [ebp - 0x50]
call fcn.004dc900
mov ecx, eax
call fcn.00436c30
test eax, eax
jne 0x5f6d72
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x20], 0xfffffffe
je 0x5f6d72
jmp 0x5f6dc1
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x44], 0
jne 0x5f6dbc
mov edx, dword [ebp - 8]
cmp dword [edx + 0xd80], 0
je 0x5f6d97
mov eax, 1
jmp 0x5f738b
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407de0
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e00
sub eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x5f6d0d
cmp dword [ebp - 0x4c], 0
je 0x5f6de5
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.004079b0
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 1
jmp 0x5f71ba
mov edx, dword [ebp - 8]
cmp dword [edx + 0xd80], 0
je 0x5f6f07
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd84], 0
jle 0x5f6f07
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xd88], 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xbf0]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0
jmp 0x5f6e35
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x58]
cmp eax, dword [edx + 0xd84]
jge 0x5f6ea0
cmp dword [ebp + 8], 0x21
jne 0x5f6e55
mov dword [ebp - 0xe8], 0x26
jmp 0x5f6e5f
mov dword [ebp - 0xe8], 0x28
mov esi, esp
mov ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x408]
mov dword [ebp - 0xec], ecx
mov edi, esp
mov ecx, dword [ebp - 0xec]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0xec]
cmp esi, esp
call fcn.00710bc0
jmp 0x5f6e2c
mov edx, dword [ebp - 8]
mov dword [edx + 0xd88], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax + 0xbf0]
je 0x5f6efd
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xbf0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x264]
mov dword [ebp - 0xf0], eax
mov edi, esp
mov ecx, dword [ebp - 0xf0]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0xf0]
cmp esi, esp
call fcn.00710bc0
mov eax, 1
jmp 0x5f738b
jmp 0x5f71ba
call fcn.00510d80
test eax, eax
jne 0x5f71ba
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, esp
call fcn.00710bc0
movsx ecx, ax
and ecx, 0x8000
jne 0x5f71ba
mov edx, dword [ebp + 8]
push edx
call fcn.005a3e30
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x5c], 0
je 0x5f6f5d
mov ecx, dword [ebp + 8]
push ecx
call fcn.005a4420
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x5c], 0
je 0x5f7163
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xd20
call fcn.005466b0
test eax, eax
je 0x5f7163
push 0x531
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0044ed60
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e40
mov dword [ebp - 0x80], eax
jmp 0x5f6fc1
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x80], 0
je 0x5f7057
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00408050
mov edx, dword [eax]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x88], 0
je 0x5f6ffa
mov dword [ebp - 0xf4], 1
jmp 0x5f7004
mov dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x5f702d
push 0x53a
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.004057f9
test eax, eax
je 0x5f702d
int3
cmp dword [ebp - 0x8c], 0
jne 0x5f703b
call fcn.0044f610
xor edx, edx
jne 0x5f6fe5
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x70]
jne 0x5f7052
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x1c], ecx
jmp 0x5f7057
jmp 0x5f6fb8
mov edx, dword [ebp - 0x70]
push edx
push 0x82b97c
call fcn.0044ef60
add esp, 8
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x5f7161
mov esi, esp
push 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xd4]
mov dword [ebp - 0xf8], edx
mov edi, esp
mov ecx, dword [ebp - 0xf8]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 0x90]
call dword [ebp - 0xf8]
cmp esi, esp
call fcn.00710bc0
test eax, eax
je 0x5f70ea
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x8c], 0
je 0x5f70e8
push 0
push 0x24
push 0x100
mov ecx, dword [ebp - 0x90]
mov ecx, dword [ecx + 0x8c]
call fcn.00423020
jmp 0x5f7161
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x24]
and eax, 0x40000
je 0x5f710f
mov ecx, dword [ebp - 0x70]
push ecx
push 0
mov ecx, dword [ebp - 8]
call fcn.005f51f0
mov eax, 1
jmp 0x5f738b
mov esi, esp
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3f0]
mov dword [ebp - 0xfc], edx
mov edi, esp
mov ecx, dword [ebp - 0xfc]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0xfc]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5f7161
mov eax, 1
jmp 0x5f738b
jmp 0x5f71ba
cmp dword [0x82ba14], 0
je 0x5f71ba
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd68], 0
jne 0x5f71ba
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xdb4
call fcn.0050a750
test eax, eax
je 0x5f71ba
push 0
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 8]
call fcn.005f51f0
mov eax, 1
jmp 0x5f738b
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
je 0x5f7388
push 0x571
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
mov edx, dword [ebp - 0x18]
push edx
call fcn.0044ed60
cmp dword [ebp - 0x1c], 0
jl 0x5f71f2
mov ecx, dword [ebp - 8]
add ecx, 0xc3c
call fcn.00407e00
cmp dword [ebp - 0x1c], eax
jl 0x5f7206
push 0x572
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.004057f9
test eax, eax
je 0x5f7206
int3
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00542cd0
cmp eax, dword [ebp - 0x18]
je 0x5f722b
push 0x573
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfc_afxpopupmenubar.cpp
call fcn.004057f9
test eax, eax
je 0x5f722b
int3
cmp dword [ebp - 0x20], 0
je 0x5f7279
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd88], 0
jne 0x5f7279
mov esi, esp
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x264]
mov dword [ebp - 0x100], ecx
mov edi, esp
mov ecx, dword [ebp - 0x100]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0x100]
cmp esi, esp
call fcn.00710bc0
call fcn.00510d80
test eax, eax
je 0x5f728e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xbf4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xbf0], edx
lea ecx, [ebp - 0xb0]
call fcn.004061c0
lea ecx, [ebp - 0xb0]
call fcn.00408500
push eax
mov ecx, dword [ebp - 8]
call fcn.00420d60
mov ecx, dword [ebp - 0x18]
call fcn.004dc900
mov ecx, dword [eax]
mov dword [ebp - 0xc8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0xc4], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc0], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0xac]
jl 0x5f7300
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [ebp - 0xa4]
jle 0x5f7302
jmp 0x5f7340
cmp dword [ebp - 0x14], 0
je 0x5f7322
push 1
mov ecx, dword [ebp - 0x14]
call fcn.004dc900
mov ecx, eax
call fcn.00408500
push eax
mov ecx, dword [ebp - 8]
call fcn.00422330
push 1
lea ecx, [ebp - 0xc8]
call fcn.00408500
push eax
mov ecx, dword [ebp - 8]
call fcn.00422330
mov ecx, dword [ebp - 8]
call fcn.00423f70
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x20], 0xffffffff
je 0x5f7388
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x420]
mov dword [ebp - 0x104], ecx
mov edi, esp
mov ecx, dword [ebp - 0x104]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
mov ecx, dword [ebp - 8]
call dword [ebp - 0x104]
cmp esi, esp
call fcn.00710bc0
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x5f73bc]
call fcn.00710b50
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0070ffb0
add esp, 0x104
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 4