Function at 0x402260
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7e4
push ebx
push ebp
mov ebp, dword [esp + 0x7f0]
push esi
push edi
mov al, byte [ebp + 0x874]
lea esi, [ebp + 0x874]
test al, al
je 0x402946
mov eax, dword [ebp + 0x19c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1009
push eax
call edi
mov edx, dword [ebp + 0x19c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0x1007
push edx
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x4c], str.__________
call edi
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x4022ef
push esi
call fcn.00445110
add esp, 4
test eax, eax
jne 0x4028f8
lea eax, [esp + 0x74]
push eax
push str.Type
push esi
call fcn.00444cd0
add esp, 0xc
test eax, eax
jne 0x4028f8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x74]
push ecx
push 0x49f190
push edx
call fcn.0047e1c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, 0x24
je 0x402337
mov dword [esp + 0x10], 0x199
jmp 0x402900
lea eax, [esp + 0x10]
push eax
push str.RecType
push esi
call fcn.00444e60
add esp, 0xc
test eax, eax
jne 0x4028f8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x1a0]
push 0x1202
push ecx
push 0x53c
push edx
call fcn.00471c30
lea eax, [esp + 0x84]
push eax
push 0x49f234
push esi
call fcn.00444cd0
add esp, 0x1c
test eax, eax
jne 0x4028f8
lea edi, [esp + 0x74]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x20
ja 0x4028f8
mov edx, dword [ebp + 0x1a0]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [esp + 0x74]
push ecx
push 0x4ce
push edx
call edi
lea eax, [esp + 0x74]
mov byte [esp + 0x74], 0
push eax
push str.CDTextDiscTitle
push esi
call fcn.00444cd0
mov edx, dword [ebp + 0x1a0]
add esp, 0xc
lea ecx, [esp + 0x74]
mov byte [esp + 0xd4], 0
push ecx
push 0x4d0
push edx
call edi
lea eax, [esp + 0x74]
mov byte [esp + 0x74], 0
push eax
push str.CDTextDiscComposer
push esi
call fcn.00444cd0
mov al, byte [esp + 0x80]
add esp, 0xc
test al, al
jne 0x402422
lea ecx, [esp + 0x74]
push ecx
push str.CDTextDiscPerformer
push esi
call fcn.00444cd0
add esp, 0xc
mov eax, dword [ebp + 0x1a0]
lea edx, [esp + 0x74]
push edx
push 0x4d1
push eax
mov byte [esp + 0xc0], 0
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push str.Pre_emphasis
push esi
call fcn.00444e60
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x402465
cmp eax, 1
jne 0x4028f8
xor edx, edx
cmp eax, ebx
mov eax, dword [ebp + 0x1a0]
setne dl
push edx
push 0x4d6
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
push ebp
call fcn.0045ff60
add esp, 4
test eax, eax
je 0x4028f8
lea ecx, [esp + 0x14]
push ecx
push str.NumTracks
push esi
call fcn.00444e60
add esp, 0xc
test eax, eax
jne 0x4028f8
cmp dword [esp + 0x14], ebx
jl 0x4028f8
push ebx
push ebx
push ebp
mov dword [ebp + 0x990], ebx
call fcn.00401350
push 0x78
call fcn.0046b600
mov edx, dword [ebp + 0x1b0]
add esp, 0x10
push eax
push 0x449
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1b0]
push eax
push ebx
push 0x406
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
jl 0x40285e
jmp 0x402516
xor ebx, ebx
push eax
lea edx, [esp + 0x78]
push str.Track_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x400]
lea ecx, [esp + 0x80]
push eax
lea eax, [ebp + 0x874]
push ecx
push eax
call fcn.00444cd0
add esp, 0x18
test eax, eax
jne 0x4028ec
mov al, byte [esp + 0x3f4]
xor ecx, ecx
test al, al
je 0x4028ec
lea eax, [esp + 0x3f4]
cmp byte [eax], 9
jne 0x40256f
mov byte [eax], 0
inc ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x402566
cmp ecx, 6
jne 0x4028ec
lea edi, [esp + 0x3f4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3f8]
push ecx
call fcn.0047e290
mov edx, eax
or ecx, 0xffffffff
inc edx
xor eax, eax
mov edi, edx
lea esi, [esp + 0x3bc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2c]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0047e290
mov ebx, eax
or ecx, 0xffffffff
inc ebx
xor eax, eax
mov edi, ebx
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0x49f190
push edx
call fcn.0047e1c0
push 0
push ebx
call fcn.0047e290
mov ebx, eax
or ecx, 0xffffffff
inc ebx
xor eax, eax
mov edi, ebx
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x98]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0x49f190
push edx
call fcn.0047e1c0
push 0
push ebx
call fcn.0047e290
mov edx, eax
add esp, 0x38
inc edx
je 0x4026ac
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4026b1
mov byte [esp + 0x54], 0
push 0
push edx
call fcn.0047e290
mov edx, eax
add esp, 8
inc edx
je 0x4026e9
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4026f1
mov byte [esp + 0x1b4], 0
push 0
push edx
call fcn.0047e290
add esp, 8
inc eax
je 0x402727
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40272f
mov byte [esp + 0x234], 0
lea ecx, [esp + 0x2b4]
push ecx
call fcn.00472340
add esp, 4
cmp eax, 1
je 0x40276b
push 0x49f1d0
push 0xc4
call fcn.0046b4e0
add esp, 4
lea edx, [esp + 0x178]
push eax
push 0x49f1cc
push str._s_s_s
push edx
jmp 0x4027bc
push 0
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x180]
push 0
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x2c8]
push edx
push eax
call fcn.004648c0
add esp, 0x1c
test eax, eax
jne 0x4027cd
push 0x49f1d0
push 0xae
call fcn.0046b4e0
add esp, 4
lea ecx, [esp + 0x178]
push eax
push 0x49f1cc
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x234]
lea eax, [esp + 0x1b4]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x184]
push eax
lea edx, [esp + 0x2c8]
push ecx
push edx
push esi
push ebp
call fcn.00401df0
inc esi
push ebp
mov dword [esp + 0x44], esi
call fcn.00401490
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x1b0]
add esp, 0x28
push 0
push eax
push 0x402
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
call fcn.00445c60
mov eax, dword [ebp + 0x6cc]
add esp, 4
test eax, eax
jne 0x40285c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x402514
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x40287c
mov eax, dword [ebp + 0x19c]
push 0xffff
push ebx
push 0x101e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x1b0]
push ebx
push ebx
push 0x402
push 0x407
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [ebp + 0x1b0]
push 0x4b32f0
push 0x449
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
push 1
push ebp
call fcn.00401350
mov eax, dword [ebp + 0x19c]
add esp, 0xc
push ebx
push ebx
push 0x1013
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
call fcn.00401130
push ebx
push ebp
call fcn.0045b0a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7e4
ret
push ebx
push 1
push ebp
call fcn.00401350
add esp, 0xc
mov dword [esp + 0x10], 0x19a
mov edx, dword [ebp + 0x1b0]
push ebx
push ebx
push 0x402
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esp + 0x10]
push 0x30
lea esi, [ebp + 0x874]
push 0x4d44b8
push esi
push eax
call fcn.0046b4e0
mov ecx, dword [ebp + 0x18]
add esp, 8
push eax
push ecx
call fcn.0046b480
add esp, 0x10
mov byte [esi], 0
jmp 0x402948
xor ebx, ebx
mov edx, dword [ebp + 0x19c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1009
push edx
call esi
mov ecx, dword [ebp + 0x19c]
lea eax, [esp + 0x28]
push eax
push ebx
push 0x1007
push ecx
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x4c], str.__________
call esi
push ebp
mov dword [ebp + 0x990], ebx
call fcn.00401490
mov edx, dword [0x4fefb4]
mov eax, dword [ebp + 0x1a0]
push ebx
push edx
push 0x53c
push eax
call fcn.00471c30
mov ecx, dword [ebp + 0x1a0]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x14
push 0x4b32f0
push 0x4ce
push ecx
call esi
mov edx, dword [ebp + 0x1a0]
push 0x4b32f0
push 0x4d0
push edx
call esi
mov eax, dword [ebp + 0x1a0]
push 0x4b32f0
push 0x4d1
push eax
call esi
mov ecx, dword [0x4fefb8]
mov edx, dword [ebp + 0x1a0]
push ecx
push 0x4d6
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x4028cc