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

Disassembly:
sub esp, 0x7e4
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x7e0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7f4]
lea ebp, [esi + 0x884]
xor ebx, ebx
cmp byte [ebp], bl
push edi
je 0x402964
mov eax, dword [esi + 0x19c]
mov edi, dword [0x49e4d4]
push ebx
push ebx
push 0x1009
push eax
call edi
mov edx, dword [esi + 0x19c]
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x1007
push edx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x48], 0x49e658
call edi
push 0x14
call dword [0x49e4ac]
test ax, ax
js 0x4023b5
push ebp
call fcn.004322c0
test eax, eax
jne 0x40291e
lea eax, [esp + 0x70]
push eax
push str.Type
push ebp
call fcn.00431e00
test eax, eax
jne 0x40291e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x74]
push 0x49e59c
push edx
call fcn.0048108c
add esp, 0xc
cmp dword [esp + 0x10], 0x24
je 0x4023f8
mov dword [esp + 0x10], 0x199
jmp 0x402926
lea eax, [esp + 0x10]
push eax
push str.RecType
push ebp
call fcn.00432020
test eax, eax
jne 0x40291e
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1a0]
push 0x1202
push ecx
push 0x53c
push edx
call fcn.00474940
add esp, 0x10
lea eax, [esp + 0x70]
push eax
push 0x49e644
push ebp
call fcn.00431e00
test eax, eax
jne 0x40291e
lea eax, [esp + 0x70]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402450
sub eax, edx
cmp eax, 0x20
ja 0x40291e
mov edx, dword [esi + 0x1a0]
mov edi, dword [0x49e4c0]
lea ecx, [esp + 0x70]
push ecx
push 0x4ce
push edx
call edi
lea eax, [esp + 0x70]
push eax
push str.CDTextDiscTitle
push ebp
mov byte [esp + 0x7c], bl
call fcn.00431e00
mov edx, dword [esi + 0x1a0]
lea ecx, [esp + 0x70]
push ecx
push 0x4d0
push edx
mov byte [esp + 0xdc], bl
call edi
lea eax, [esp + 0x70]
push eax
push str.CDTextDiscComposer
push ebp
mov byte [esp + 0x7c], bl
call fcn.00431e00
cmp byte [esp + 0x70], bl
jne 0x4024d5
lea ecx, [esp + 0x70]
push ecx
push str.CDTextDiscPerformer
push ebp
call fcn.00431e00
mov eax, dword [esi + 0x1a0]
lea edx, [esp + 0x70]
push edx
push 0x4d1
push eax
mov byte [esp + 0xbc], bl
call edi
lea ecx, [esp + 0x10]
push ecx
push 0x49e5fc
push ebp
mov dword [esp + 0x1c], ebx
call fcn.00432020
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402514
cmp eax, 1
jne 0x40291e
xor edx, edx
cmp eax, ebx
mov eax, dword [esi + 0x1a0]
setne dl
push edx
push 0x4d6
push eax
call dword [0x49e4b0]
push esi
call fcn.00462810
add esp, 4
test eax, eax
je 0x40291e
lea ecx, [esp + 0x14]
push ecx
push str.NumTracks
push ebp
call fcn.00432020
test eax, eax
jne 0x40291e
cmp dword [esp + 0x14], ebx
jl 0x40291e
push ebx
push ebx
push esi
mov dword [esi + 0x9a0], ebx
call fcn.00401340
push 0x78
call fcn.0046d810
mov edx, dword [esi + 0x1b0]
add esp, 0x10
push eax
push 0x449
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1b0]
push eax
push ebx
push 0x406
push 0x407
push ecx
call dword [0x49e4b4]
mov eax, 1
cmp dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
jl 0x402876
lea esp, [esp]
push eax
lea edx, [esp + 0x74]
push str.Track_02d
push edx
call dword [0x49e4bc]
add esp, 0xc
lea eax, [esp + 0x3f0]
push eax
lea ecx, [esp + 0x74]
push ecx
push ebp
call fcn.00431e00
test eax, eax
jne 0x402912
xor ecx, ecx
cmp byte [esp + 0x3f0], bl
je 0x402912
lea eax, [esp + 0x3f0]
cmp byte [eax], 9
jne 0x40260f
mov byte [eax], bl
add ecx, 1
add eax, 1
cmp byte [eax], bl
jne 0x402605
cmp ecx, 6
jne 0x402912
xor eax, eax
mov cl, byte [esp + eax + 0x3f0]
mov byte [esp + eax + 0x2f0], cl
add eax, 1
cmp cl, bl
jne 0x402621
lea edx, [esp + 0x3f0]
push ebx
push edx
call fcn.00481160
add esp, 8
add eax, 1
mov ecx, eax
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x402650
push ebx
push eax
call fcn.00481160
mov edi, eax
add edi, 1
lea edx, [esp + 0x78]
add esp, 8
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x402670
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x74]
push 0x49e59c
push ecx
call fcn.0048108c
push ebx
push edi
call fcn.00481160
mov edi, eax
add edi, 1
lea edx, [esp + 0x84]
add esp, 0x14
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x4026b0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x74]
push 0x49e59c
push eax
call fcn.0048108c
push ebx
push edi
call fcn.00481160
add esp, 0x14
add eax, 1
je 0x4026f5
lea edi, [esp + 0x50]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
cmp dl, bl
jne 0x4026e7
jmp 0x4026f9
mov byte [esp + 0x50], bl
push ebx
push eax
call fcn.00481160
add esp, 8
add eax, 1
je 0x402721
lea edi, [esp + 0x230]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
cmp dl, bl
jne 0x402713
jmp 0x402728
mov byte [esp + 0x230], bl
push ebx
push eax
call fcn.00481160
add esp, 8
add eax, 1
je 0x40274e
lea edx, [esp + 0x1b0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x402740
jmp 0x402755
mov byte [esp + 0x1b0], bl
lea ecx, [esp + 0x2f0]
push ecx
call fcn.00475fe0
add esp, 4
cmp eax, 1
je 0x402791
push 0x49e5dc
push 0xc4
call fcn.0046d6b0
add esp, 4
push eax
push 0x49e5d8
push str._s_s_s
lea edx, [esp + 0x180]
push edx
jmp 0x4027df
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x308]
push eax
call fcn.00466bd0
add esp, 0x1c
test eax, eax
jne 0x4027ec
push 0x49e5dc
push 0xae
call fcn.0046d6b0
add esp, 4
push eax
push 0x49e5d8
push str._s_s_s
lea ecx, [esp + 0x180]
push ecx
call dword [0x49e4bc]
mov dword [esp + 0x2c], ebx
add esp, 0x14
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x1b0]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
lea ecx, [esp + 0x184]
push ecx
lea edx, [esp + 0x308]
push edx
push edi
push esi
call fcn.00401e60
add edi, 1
push esi
mov dword [esp + 0x44], edi
call fcn.00401480
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x1b0]
add esp, 0x28
push ebx
push eax
push 0x402
push 0x407
push ecx
call dword [0x49e4b4]
push ebx
call fcn.00432430
cmp dword [esi + 0x6dc], ebx
jne 0x402876
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jle 0x4025c0
cmp dword [esp + 0x14], ebx
jle 0x402894
mov eax, dword [esi + 0x19c]
push 0xffff
push ebx
push 0x101e
push eax
call dword [0x49e4d4]
mov ecx, dword [esi + 0x1b0]
push ebx
push ebx
push 0x402
push 0x407
push ecx
call dword [0x49e4b4]
mov edx, dword [esi + 0x1b0]
push 0x49e5e0
push 0x449
push edx
call dword [0x49e4c0]
push ebx
push 1
push esi
call fcn.00401340
mov eax, dword [esi + 0x19c]
add esp, 0xc
push ebx
push ebx
push 0x1013
push eax
call dword [0x49e4d4]
push esi
call fcn.00401120
push ebx
push esi
call fcn.0045dd90
mov ecx, dword [esp + 0x7fc]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004810ab
add esp, 0x7e4
ret
push ebx
push 1
push esi
call fcn.00401340
add esp, 0xc
mov dword [esp + 0x10], 0x19a
mov edx, dword [esi + 0x1b0]
push ebx
push ebx
push 0x402
push 0x407
push edx
call dword [0x49e4b4]
mov eax, dword [esp + 0x10]
push 0x30
push 0x4dec98
push ebp
push eax
call fcn.0046d6b0
mov ecx, dword [esi + 0x18]
add esp, 8
push eax
push ecx
call fcn.00470860
add esp, 0x10
mov byte [ebp], bl
mov edx, dword [esi + 0x19c]
mov edi, dword [0x49e4d4]
push ebx
push ebx
push 0x1009
push edx
call edi
mov ecx, dword [esi + 0x19c]
lea eax, [esp + 0x24]
push eax
push ebx
push 0x1007
push ecx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x48], 0x49e658
call edi
push esi
mov dword [esi + 0x9a0], ebx
call fcn.00401480
mov edx, dword [0x50a254]
mov eax, dword [esi + 0x1a0]
push ebx
push edx
push 0x53c
push eax
call fcn.00474940
mov ecx, dword [esi + 0x1a0]
mov edi, dword [0x49e4c0]
add esp, 0x14
push 0x49e5e0
push 0x4ce
push ecx
call edi
mov edx, dword [esi + 0x1a0]
push 0x49e5e0
push 0x4d0
push edx
call edi
mov eax, dword [esi + 0x1a0]
push 0x49e5e0
push 0x4d1
push eax
call edi
mov ecx, dword [0x50a258]
mov edx, dword [esi + 0x1a0]
push ecx
push 0x4d6
push edx
call dword [0x49e4b0]
jmp 0x4028e4