Function at 0x5b10c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x3dc]
cmp eax, 2
je 0x5b1755
cmp eax, 3
je 0x5b1755
cmp eax, 4
je 0x5b1755
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, ebx
call fcn.005af540
test al, al
je 0x5b1755
mov eax, dword [0x83e254]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor esi, esi
cmp eax, esi
je 0x5b127f
push 0x12
call edi
mov ecx, dword [0x7a1264]
xor edx, edx
mov dl, ah
test dl, dl
mov edx, dword [0x7a1250]
je 0x5b125d
mov eax, dword [0x7a1254]
cmp ecx, esi
je 0x5b1148
mov eax, edx
cmp eax, 1
jne 0x5b125d
cmp dword [0x83e24c], esi
jne 0x5b124b
mov ebx, dword [ebx + 0xb4]
mov eax, dword [0x83e1c4]
push eax
mov ecx, ebx
call fcn.00529760
push 0x10
mov esi, eax
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5b11da
test esi, esi
je 0x5b1755
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x5b1755
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5b1755
mov edx, dword [ebp - 0xc]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x24], 1
call dword [edx + 0xb0]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x83e240], edx
cmp esi, ecx
mov dword [0x83e244], ebx
mov dword [0x83e23c], ecx
mov dword [0x83e250], ecx
je 0x5b1235
mov eax, dword [esi + 0x2b0]
cmp eax, ecx
je 0x5b1235
cmp dword [eax + 4], ecx
je 0x5b1235
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
call dword [edx + 0xa8]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x83e248], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [0x83e24c], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x83e254], esi
je 0x5b127f
mov eax, dword [0x7a1254]
cmp ecx, esi
je 0x5b1270
mov eax, edx
cmp eax, 1
jne 0x5b127f
mov ecx, 0x83a9e0
call fcn.006cea10
cmp dword [0x83e2f8], esi
je 0x5b14a0
push 0x12
call edi
mov edx, dword [0x7a1250]
xor ecx, ecx
mov cl, ah
test cl, cl
mov ecx, dword [0x7a1264]
je 0x5b13c9
cmp ecx, esi
mov eax, edx
je 0x5b12b2
mov eax, dword [0x7a1254]
cmp eax, 1
jne 0x5b13c9
cmp dword [0x83e2f0], esi
jne 0x5b13b7
mov ebx, dword [ebx + 0xb4]
mov edx, dword [0x83e26c]
push edx
mov ecx, ebx
call fcn.00529760
push 0x10
mov esi, eax
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5b1345
test esi, esi
je 0x5b1755
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x5b1755
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5b1755
mov edx, dword [ebp - 0xc]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 1
push eax
mov ecx, esi
mov dword [ebp - 0x24], 1
call dword [edx + 0xb0]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x83e2e0], edx
cmp esi, ecx
mov dword [0x83e2e4], ebx
mov dword [0x83e2dc], ecx
mov dword [0x83e2f4], ecx
je 0x5b13a1
mov eax, dword [esi + 0x2b4]
cmp eax, ecx
je 0x5b13a1
cmp dword [eax + 4], ecx
je 0x5b13a1
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push 1
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
call dword [edx + 0xa8]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x83e2e8], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [0x83e2f0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x83e2f8], esi
je 0x5b14a0
cmp ecx, esi
mov eax, edx
je 0x5b13e0
mov eax, dword [0x7a1254]
cmp eax, 1
jne 0x5b14a0
mov ecx, 0x83a9e0
call fcn.006cea70
cmp dword [ebx + 0x3dc], 1
jne 0x5b1519
mov ecx, dword [ebx + 0x3e0]
push ecx
mov ecx, 0x83a9e0
call fcn.006f8b10
test eax, eax
je 0x5b14a0
mov edx, dword [0x83e26c]
mov ecx, dword [ebx + 0xb4]
push edx
call fcn.00529760
mov edx, eax
cmp edx, esi
je 0x5b14a0
mov eax, dword [edx + 0x2b4]
cmp eax, esi
je 0x5b14a0
cmp dword [eax + 4], esi
je 0x5b14a0
mov eax, dword [edx + 0x5c]
cmp eax, 1
je 0x5b1451
cmp eax, esi
je 0x5b1451
cmp eax, 4
jne 0x5b14a0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x3e0]
mov eax, dword [ebx + 0x3e8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x24], 8
call dword [eax + 0xa8]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x3dc], 1
jne 0x5b1519
mov eax, dword [0x7a1264]
cmp eax, esi
mov eax, dword [0x7a1250]
je 0x5b14bc
mov eax, dword [0x7a1254]
cmp eax, 1
jne 0x5b1519
mov esi, dword [ebp + 8]
test esi, esi
je 0x5b14cd
cmp esi, 2
jne 0x5b151c
mov edx, dword [ebx + 0xb4]
mov esi, 1
mov dword [ebp + 8], esi
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x5b151c
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
push edx
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebx + 0x3e0]
push edx
push 0x41
push 0
call dword [eax + 8]
mov eax, dword [ebx + 0xb4]
push 0
push 0
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x3e8]
push eax
push 0x5a
mov edx, dword [ecx]
push 0
call dword [edx + 8]
jmp 0x5b151c
mov esi, dword [ebp + 8]
push 0x11
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x5b1755
mov eax, dword [ebx + 0x284]
test eax, eax
jne 0x5b1755
test esi, esi
je 0x5b1547
cmp esi, 2
jne 0x5b1755
mov eax, dword [ebx + 0x340]
test eax, eax
jne 0x5b1755
mov eax, dword [0x83e0b0]
test eax, eax
je 0x5b15d2
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [0x8374f8], ecx
mov dword [0x8374fc], esi
mov dword [0x837500], 0
mov edx, dword [ebx + 0xb4]
test ecx, ecx
mov edx, dword [edx + 0x40]
jl 0x5b15be
mov eax, dword [edx + 0x110]
cmp ecx, eax
jge 0x5b15be
test esi, esi
jl 0x5b15be
cmp esi, dword [edx + 0x114]
jge 0x5b15be
imul eax, esi
add eax, ecx
mov ecx, dword [edx + 0x120]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
test eax, eax
je 0x5b15be
mov eax, dword [eax + 0x10]
cmp eax, 1
jne 0x5b1720
mov eax, 0xfeff0000
mov dword [0x837500], 1
mov dword [0x837504], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebx + 0xc0]
add edx, 0x258
cmp eax, edx
mov eax, dword [ebx + 0xb4]
seta cl
mov edx, dword [eax + 0x3c]
mov eax, dword [edx + 0x3f4]
test eax, eax
jne 0x5b1626
mov eax, dword [0x7a1264]
test eax, eax
mov eax, dword [0x7a1250]
je 0x5b160f
mov eax, dword [0x7a1254]
cmp eax, 2
jne 0x5b1626
test cl, cl
je 0x5b1626
mov eax, dword [ebx + 0xe0]
mov byte [ebp - 1], 1
test eax, eax
jne 0x5b162a
mov byte [ebp - 1], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0xc0]
mov esi, dword [0x7a1264]
mov edi, dword [0x7a1250]
add ecx, 0xe1
cmp eax, ecx
mov eax, dword [0x7a1254]
seta dl
test esi, esi
mov ecx, edi
je 0x5b165a
mov ecx, eax
cmp ecx, 1
jne 0x5b166e
test esi, esi
je 0x5b1665
mov eax, edi
cmp eax, 2
je 0x5b166e
test dl, dl
jne 0x5b1679
mov al, byte [ebp - 1]
test al, al
je 0x5b1755
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x10
mov dword [ebx + 0xc0], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5b1739
mov eax, dword [0x7dae20]
test eax, eax
jne 0x5b1739
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + 0x5c], 6
je 0x5b1739
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push eax
mov ecx, ebx
call fcn.005aa4f0
test al, al
jne 0x5b16df
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
push ecx
push edx
mov ecx, ebx
call fcn.005aa040
test al, al
je 0x5b1755
mov eax, dword [0x7dadcc]
test eax, eax
je 0x5b16f4
push 0x12
mov ecx, 0x7dabc0
call fcn.00509b10
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x5b1755
mov eax, dword [ebp - 8]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x11
push 0
call dword [edx + 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 5
jne 0x5b172f
mov eax, 0xfeffff00
jmp 0x5b15c3
mov eax, 0x6600ffaa
jmp 0x5b15cd
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ebp - 8]
push 0
push eax
mov ecx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0xc]
push eax
push 0x10
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4