Function at 0x40377f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov eax, 0x20e4
mov ebp, esp
call fcn.00418b70
push ebx
push esi
push edi
mov esi, ecx
push 0x11
lea edi, [esi + 0x40ec]
mov dword [edi], 0x120
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, 0x8000
push 0x10
cmp ax, 1
sbb ebx, ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, 0x8000
inc ebx
cmp ax, 1
push 2
sbb eax, eax
inc eax
mov dword [ebp - 0xe8], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, 0x8000
cmp ax, 1
sbb eax, eax
inc eax
test ebx, ebx
je 0x403800
cmp dword [ebp - 0xe8], 0
je 0x4037f8
cmp eax, 1
sbb eax, eax
and eax, 0x10
add eax, 0x40
mov dword [edi], eax
jmp 0x403815
test ebx, ebx
jne 0x403b6e
cmp dword [ebp - 0xe8], 0
jne 0x403b6e
test eax, eax
jne 0x403b6e
cmp dword [esi + 0x822c], 0
je 0x403839
push 0
mov eax, dword [esi]
push 0x41d268
mov ecx, esi
push str.Busy...try_again
call dword [eax + 0x90]
jmp 0x403b6e
push 0x3ec
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x403851
or dword [edi], 0x100200
push 0x3ed
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x403867
or byte [edi + 1], 0x80
mov eax, dword [esi + 0x40d0]
test eax, eax
je 0x40387b
cmp dword [eax + 0x1c], 0
je 0x40387b
or byte [edi + 2], 0x20
push 0
mov ecx, esi
push 0
mov eax, dword [esi]
push 0x1032
push 0x415
call dword [eax + 0xa8]
mov ebx, eax
mov dword [esi + 0x40e8], eax
test ebx, ebx
jle 0x403b6e
imul eax, eax, 0x14
add eax, 4
push eax
call fcn.004188d0
add esp, 4
mov dword [ebp - 0xe8], eax
test eax, eax
je 0x4038e7
mov dword [eax], ebx
add eax, 4
dec ebx
mov dword [ebp - 4], eax
js 0x4038d6
mov ecx, dword [ebp - 4]
call fcn.00403b77
add dword [ebp - 4], 0x14
dec ebx
jns 0x4038c7
mov eax, dword [ebp - 0xe8]
add eax, 4
mov dword [esi + 0x40e4], eax
jmp 0x4038f1
mov dword [esi + 0x40e4], 0
cmp dword [esi + 0x40e4], 0
je 0x403b6e
push 0x4000
lea eax, [esi + 0xcc]
push eax
mov ecx, esi
mov dword [esi + 0x8130], 0x107
push 0x3e9
mov ebx, dword [esi]
call dword [ebx + 0x84]
mov ecx, dword [esi + 0x40]
call fcn.0040507b
mov edx, dword [esi + 0x40e8]
cmp edx, 1
jle 0x40393a
or byte [edi + 1], 8
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x310], edx
jl 0x403966
cmp dword [eax + 0x2b0], ecx
jne 0x40395d
cmp dword [eax + 0x298], ecx
je 0x403966
mov dword [ebp - 4], 0x400000
jmp 0x40396d
mov dword [ebp - 4], 0
xor ebx, ebx
cmp dword [esi + 0x40e0], ebx
jle 0x403a6d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x40e8], eax
jle 0x403a6d
push 2
mov ecx, esi
push ebx
mov eax, dword [esi]
push 0x102c
push 0x415
call dword [eax + 0xa8]
test al, 2
je 0x403a5c
mov ecx, dword [esi + 0x40dc]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x18]
mov edx, dword [ecx + eax]
mov ecx, dword [esi + 0x40e4]
mov dword [ebp - 0xe8], edx
add ecx, dword [ebp - 0x1c]
add edx, 0xd0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [edx]
lea ecx, [ebp - 0xe4]
and eax, 0x400000
push ecx
push dword [ebp - 0xe8]
push dword [esi + 0x3c]
add dword [ebp - 0x1c], 0x14
or dword [ebp - 0xc], eax
call fcn.0040b77c
add esp, 0xc
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [esi + 0x40]
call fcn.00405080
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x14]
inc dword [edx + 0xdc]
test dword [ecx], eax
mov eax, 2
je 0x403a3e
mov eax, dword [ebp - 0xe8]
cmp dword [eax + 0xe0], 1
sbb eax, eax
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
sub eax, 2
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x400000
or eax, dword [edi]
mov dword [ecx + 8], eax
add dword [ebp - 0x10], 4
inc ebx
cmp dword [esi + 0x40e0], ebx
jg 0x403981
mov byte [esi + 0x1ecc], 0
mov eax, dword [ebp - 4]
test dword [ebp - 0xc], eax
je 0x403a80
or byte [edi + 2], 0x40
lea eax, [esi + 0xcc]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x40d0]
push dword [edi]
push eax
call fcn.004050b9
mov eax, dword [esi + 0x40d0]
test eax, eax
je 0x403b0b
cmp dword [eax + 0x1c], 0
je 0x403b0b
push 0x2000
lea ecx, [ebp - 0x20e4]
push ecx
lea edi, [esi + 0x40f0]
push eax
call fcn.0041279d
add esp, 0xc
lea ecx, [ebp - 0x20e4]
push ecx
call fcn.00418970
add esp, 4
inc eax
push eax
call fcn.004188d0
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x20e4]
push eax
push dword [edi]
call fcn.00418670
add esp, 8
mov ecx, dword [esi + 0x40cc]
push dword [esi + 0x40e8]
push dword [esi + 0x40e4]
push dword [esi + 0x40d0]
call fcn.00410c08
mov ecx, esi
call fcn.00403fb1
mov ecx, 0x102
push 0
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x8130], ecx
push dword [eax + 0x398]
push ecx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x403b4a
push esi
push 0
push 0x47b
call fcn.00418376
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
push 0
push 0x47c
call fcn.00418376
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.0040f69d
mov eax, 1
jmp 0x403b70
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret