Function at 0x403cf0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x424
mov eax, dword [esp + 0x42c]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edx, dword [ebp + 4]
cmp eax, edx
jb 0x40446d
mov esi, dword [ebp + 8]
cmp eax, esi
jae 0x40446d
mov ecx, eax
sub ecx, edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x440]
cmp ecx, edx
jae 0x40446d
add eax, 2
cmp eax, esi
jae 0x40446d
mov edi, dword [esp + 0x438]
mov esi, dword [sym.imp.user32.dll_GetAsyncKeyState]
mov ebx, dword [esp + 0x20]
jmp 0x403d57
mov esi, dword [sym.imp.user32.dll_GetAsyncKeyState]
push 0x11
call esi
test ax, ax
jge 0x403d6d
push 0x7b
call esi
test ax, ax
jl 0x40446d
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 4]
mov eax, ecx
push 0
add eax, edx
lea edx, [esp + 0x18]
push 1
push edx
push edi
mov dword [esp + 0x44c], eax
mov dword [esp + 0x24], ecx
call fcn.004025e0
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x24], esi
jne 0x403da8
inc dword [esp + 0x18]
jmp 0x4041c1
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 8]
test ah, 0x40
jne 0x40446d
mov eax, dword [esi]
push 0x460c1c
push eax
mov dword [esp + 0x20], 0
call fcn.004348b0
add esp, 8
test eax, eax
jne 0x403de3
test byte [esi + 8], 1
jne case.0x403e14.9
mov eax, dword [esi + 0xc]
add eax, 0xfffffffe
cmp eax, 0x45
ja case.0x403df6.9
xor ecx, ecx
mov cl, byte [eax + 0x40449c]
jmp dword [ecx*4 + 0x40447c]
mov esi, dword [esi + 0x10]
lea eax, [esi - 2]
cmp eax, 0x45
ja case.0x403e14.9
xor ecx, ecx
mov cl, byte [eax + 0x404504]
jmp dword [ecx*4 + 0x4044e4]
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov esi, 1
mov bl, byte [edx + edi]
lea eax, [edx + edi]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jmp 0x403e91
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
add eax, edi
jmp 0x403e86
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov esi, 1
mov bl, byte [ecx + edi]
lea eax, [ecx + edi]
mov dword [esp + 0x10], eax
jmp 0x403e91
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov esi, 2
mov bx, word [edx + edi]
lea eax, [edx + edi]
mov dword [esp + 0x10], eax
jmp 0x403e91
mov ecx, dword [esp + 0x14]
lea eax, [ecx + edi + 1]
jmp 0x403e86
mov edx, dword [esp + 0x14]
lea eax, [edx + edi]
mov ebx, dword [eax]
mov dword [esp + 0x10], eax
mov esi, 4
mov edx, dword [esp + 0x18]
mov ecx, ebx
test edx, edx
mov dword [esp + 0x30], ecx
je 0x403eae
mov ecx, dword [esp + 0x43c]
lea ecx, [ebx + ecx + 5]
mov dword [esp + 0x30], ecx
cmp ecx, dword [ebp + 4]
jb 0x403fbf
cmp ecx, dword [ebp + 8]
jae 0x403fbf
test edx, edx
jne case.0x403e14.9
mov edx, dword [ebp + 0x38]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
test edx, edx
je 0x403efe
mov ecx, dword [ebp + 0x3c]
sub ecx, edx
sar ecx, 2
mov edx, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x403efe
mov edx, dword [ebp + 0x38]
cmp dword [edx + ecx*4], eax
je 0x403efe
mov edx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x403ed5
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x403f15
mov edx, dword [ebp + 0x3c]
sub edx, eax
sar edx, 2
cmp ecx, edx
jb case.0x403e14.9
mov ecx, dword [ebp + 0x28]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x440]
mov edx, dword [ecx]
push ebx
push edx
push eax
lea ecx, [esp + 0x44]
push 0x460dd4
push ecx
call fcn.0043367e
mov eax, dword [ebp + 0x24]
add esp, 0x18
lea edx, [esp + 0x34]
mov ecx, dword [eax + 0x1c]
push edx
push 0
push 0x180
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [ebp + 0x20]
push 0
push 1
push 0x115
push 0x3ec
push edx
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
dec esi
je 0x403f9a
dec esi
je 0x403f8a
sub esi, 2
jne 0x403fa7
mov ecx, dword [ebp + 0x28]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x403fa7
mov eax, dword [esp + 0x10]
mov dx, bx
sub dx, word [ebp + 0x28]
mov word [eax], dx
jmp 0x403fa7
mov al, byte [ebp + 0x28]
mov edx, dword [esp + 0x10]
mov cl, bl
sub cl, al
mov byte [edx], cl
mov edx, dword [ebp + 0x3c]
lea ecx, [ebp + 0x34]
lea eax, [esp + 0x10]
push eax
push 1
push edx
call fcn.00406010
jmp case.0x403e14.9
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x1c], 0
call fcn.0042a4f0
mov edx, dword [eax + 4]
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
test edx, edx
je 0x404022
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x404022
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
cmp edx, dword [eax]
jb 0x404001
cmp edx, dword [eax + 4]
jb 0x404013
mov edx, dword [esp + 0x28]
inc ecx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
jmp 0x403fe0
mov edx, dword [esp + 0x28]
shl ecx, 4
mov eax, dword [ecx + edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4041e3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4040e1
mov edx, dword [ebp + 0x28]
mov ecx, ebx
sub ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x440]
mov eax, dword [edx]
push ebx
push eax
push ecx
lea edx, [esp + 0x44]
push 0x460dd4
push edx
call fcn.0043367e
mov ecx, dword [ebp + 0x24]
add esp, 0x18
lea eax, [esp + 0x34]
mov edx, dword [ecx + 0x1c]
push eax
push 0
push 0x180
push edx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebp + 0x20]
push 0
push 1
push 0x115
push 0x3ec
push eax
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
dec esi
je 0x4040cc
dec esi
je 0x4040b7
sub esi, 2
jne case.0x403e14.9
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x28]
mov ecx, ebx
sub ecx, edx
mov edx, dword [esp + 0x10]
sub ecx, eax
mov dword [edx], ecx
jmp case.0x403e14.9
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, ebx
sub eax, edx
sub ax, word [ebp + 0x28]
mov word [ecx], ax
jmp case.0x403e14.9
mov cl, byte [esp + 0x1c]
mov al, byte [ebp + 0x28]
mov dl, bl
sub dl, cl
sub dl, al
mov eax, dword [esp + 0x10]
mov byte [eax], dl
jmp case.0x403e14.9
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x24]
push ebx
mov dword [ecx], 1
mov eax, dword [edx]
mov ecx, dword [esp + 0x440]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x460d90
push edx
call fcn.0043367e
add esp, 0x14
mov esi, dword [esp + 0x24]
push 1
mov eax, dword [esi + 8]
push eax
mov eax, dword [esp + 0x1c]
mov cl, byte [edi + eax + 1]
mov dl, byte [eax + edi]
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
call fcn.004024c0
mov ecx, dword [esi + 8]
mov dl, al
mov eax, dword [esp + 0x28]
push 1
push ecx
and edx, 0xff
mov cl, byte [edi + eax + 1]
mov al, byte [eax + edi]
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
mov dword [esp + 0x48], edx
call fcn.004024c0
mov edx, dword [esp + 0x48]
and eax, 0xff
add edx, eax
mov eax, esi
mov esi, dword [esp + 0x3c]
push 1
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
mov cl, byte [edi + esi + 1]
push ecx
mov cl, byte [esi + edi]
push ecx
push eax
mov dword [esp + 0x5c], edx
call fcn.004024c0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
and eax, 0xff
add ecx, edx
add eax, ecx
add esp, 0x3c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
test ch, 0x16
je 0x4041c1
cmp ebx, dword [ebp + 4]
jb 0x4041c1
cmp ebx, dword [ebp + 8]
ja 0x4041c1
mov ecx, dword [esp + 0x440]
inc ecx
push ecx
push ebx
push edi
mov ecx, ebp
call fcn.00403cf0
mov edx, dword [esp + 0x43c]
mov eax, dword [ebp + 8]
add edx, 2
cmp edx, eax
jb 0x403d51
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0xc
xor eax, eax
lea edi, [ebp + 0x34]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40420a
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x40420a
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x10]
cmp dword [ecx + eax*4], edx
je 0x40420a
inc eax
jmp 0x4041e8
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x404221
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 2
cmp eax, edx
jb 0x40446d
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x28]
mov eax, ebx
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x440]
mov edx, dword [ecx]
push ebx
push edx
push eax
lea ecx, [esp + 0x44]
push 0x460d54
push ecx
call fcn.0043367e
mov eax, dword [ebp + 0x24]
add esp, 0x18
lea edx, [esp + 0x34]
mov ecx, dword [eax + 0x1c]
push edx
push 0
push 0x180
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [ebp + 0x20]
push 0
push 1
push 0x115
push 0x3ec
push edx
call dword [sym.imp.user32.dll_SendDlgItemMessageA]
dec esi
je 0x4042b3
dec esi
je 0x4042a0
sub esi, 2
jne 0x4042c4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x28]
sub ebx, ecx
add ebx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
jmp 0x4042c4
mov ecx, dword [esp + 0x1c]
sub ebx, ecx
mov ecx, dword [esp + 0x10]
add bx, word [ebp + 0x28]
mov word [ecx], bx
jmp 0x4042c4
mov cl, byte [esp + 0x1c]
mov al, byte [ebp + 0x28]
mov edx, dword [esp + 0x10]
sub bl, cl
add bl, al
mov byte [edx], bl
mov ebx, dword [edi + 8]
mov eax, dword [edi + 0xc]
sub eax, ebx
mov esi, ebx
sar eax, 2
cmp eax, 1
jae 0x4043c5
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4042ed
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x4042f2
mov eax, 1
test ecx, ecx
jne 0x4042fa
xor ebx, ebx
jmp 0x4042ff
sub ebx, ecx
sar ebx, 2
add eax, ebx
test eax, eax
mov dword [esp + 0x28], eax
jge 0x40430b
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00442732
mov ebx, dword [edi + 4]
add esp, 4
cmp ebx, esi
mov dword [esp + 0x20], eax
mov ebp, eax
je 0x40433c
push ebx
push ebp
call fcn.00406290
add ebx, 4
add esp, 8
add ebp, 4
cmp ebx, esi
jne 0x404328
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00406290
mov ebx, dword [edi + 8]
add esp, 8
add ebp, 4
cmp esi, ebx
je 0x404368
push esi
push ebp
call fcn.00406290
add esi, 4
add esp, 8
add ebp, 4
cmp esi, ebx
jne 0x404354
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x30], eax
call fcn.0044275b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add esp, 4
lea ecx, [edx + eax*4]
mov dword [edi + 0xc], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4043a6
xor eax, eax
mov dword [edi + 4], edx
lea eax, [edx + eax*4 + 4]
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0xc
mov eax, dword [edi + 8]
mov dword [edi + 4], edx
sub eax, ecx
sar eax, 2
lea eax, [edx + eax*4 + 4]
mov dword [edi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0xc
mov ecx, ebx
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0x40442d
cmp esi, ebx
mov eax, esi
je 0x4043ea
lea ebp, [eax + 4]
push eax
push ebp
call fcn.00406290
mov eax, ebp
add esp, 8
cmp eax, ebx
jne 0x4043d7
mov ecx, dword [edi + 8]
mov eax, 1
mov edx, ecx
mov ebx, ecx
sub edx, esi
sar edx, 2
sub eax, edx
je 0x404415
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00406290
add esp, 8
add ebx, 4
dec ebp
jne 0x404401
mov ecx, dword [edi + 8]
mov eax, esi
cmp esi, ecx
je 0x404469
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x40441e
jmp 0x404469
push ebx
push ebx
add ebx, 0xfffffffc
mov ecx, edi
push ebx
call fcn.00406220
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x404453
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x404444
lea ecx, [esi + 4]
mov eax, esi
cmp esi, ecx
je 0x404469
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x40445c
add dword [edi + 8], 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0xc