Function at 0x1005d0c0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2fb7ac4]
movzx eax, word [eax + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
cmp ecx, eax
jne 0x1005d640
cmp word [edi + 4], 0x3b
jne 0x1005d22f
cmp word [edi + 6], 0x1c
jne 0x1005d22f
push 0x32
lea ecx, [ebp - 0x38]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.1004b080
mov ebx, dword [0x101435f0]
add esp, 0x14
xor edi, edi
test ebx, ebx
jle 0x1005d192
mov esi, 0x10142df8
lea ecx, [ebp - 0x38]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d156
test dl, dl
je 0x1005d152
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d156
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d136
xor eax, eax
jmp 0x1005d15b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d169
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x1005d131
jmp 0x1005d192
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
lea ecx, [edi + edi*4]
lea edx, [ecx*4 + 0x10142df8]
push edx
mov dword [edi*4 + 0x10143410], eax
call fcn.10008130
add esp, 4
call esi
mov dword [0x101b8994], eax
mov ecx, 0x10197cdc
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d1e8
mov eax, dword [0x10197cdc]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x38]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d1d0
test dl, dl
je 0x1005d1cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d1d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d1b0
xor eax, eax
jmp 0x1005d1d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d213
mov ecx, 0x10197cdc
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d1a2
push 1
mov ecx, 0x10199554
call fcn.100011e0
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x10197cdc
call fcn.10001100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10199554]
mov eax, dword [ecx + esi*4]
inc dword [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d640
cmp word [edi + 4], 0xd
jne 0x1005d31f
cmp word [edi + 6], 0x7b
jne 0x1005d31f
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp word [edi + 8], 1
jne 0x1005d640
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.1004b080
add esp, 8
mov ecx, 0x10199cf4
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d2d8
jmp 0x1005d290
mov eax, dword [0x10199cf4]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x38]
jmp 0x1005d2a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d2c0
test dl, dl
je 0x1005d2bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d2c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d2a0
xor eax, eax
jmp 0x1005d2c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d303
mov ecx, 0x10199cf4
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d290
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x10199cf4
call fcn.10001100
push 1
mov ecx, 0x1019a6ec
call fcn.100011e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1019a6ec]
mov eax, dword [ecx + esi*4]
inc dword [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d640
mov eax, 0x93
cmp word [edi + 4], ax
jne 0x1005d640
mov ecx, 0x88
cmp word [edi + 6], cx
jne 0x1005d640
push 0x32
lea edx, [ebp - 0x38]
push 0
push edx
call sub.MSVCR100.dll_memset
movzx eax, word [edi + 8]
add esp, 0xc
cmp eax, 1
jne 0x1005d41d
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.1004b080
mov edi, dword [edi + 0x18]
add esp, 8
mov ecx, 0x10190d5c
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d3d8
jmp 0x1005d390
mov edx, dword [0x10190d5c]
mov eax, dword [edx + esi*4]
lea ecx, [ebp - 0x38]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d3c0
test dl, dl
je 0x1005d3bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d3c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d3a0
xor eax, eax
jmp 0x1005d3c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d402
mov ecx, 0x10190d5c
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d390
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x10190d5c
call fcn.10001100
push edi
mov ecx, 0x1019561c
call fcn.100011e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1019561c]
mov eax, dword [eax + esi*4]
add dword [eax], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1005d443
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.1004b080
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x1005d451
cmp eax, 4
jne 0x1005d640
movzx ecx, byte [edi + 0x41]
mov eax, dword [0x2f99460]
mov esi, dword [eax + ecx*4 + 0x53c]
mov dword [ebp - 0x108], eax
test esi, esi
je 0x1005d640
cmp word [edi + 0x18], 0
jbe 0x1005d640
push 0x64
lea edx, [ebp - 0x9c]
push 0
push edx
call sub.MSVCR100.dll_memset
push 0x64
lea eax, [ebp - 0x100]
push 0
push eax
call sub.MSVCR100.dll_memset
lea ecx, [ebp - 0x100]
push ecx
push esi
call fcn.100198e0
add esi, 0x64
add esp, 0x20
cmp byte [ebp - 0x100], 0
mov dword [ebp - 0x104], esi
jne 0x1005d4d4
push esi
lea edx, [ebp - 0x9c]
push 0x100964b4
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x1005d4f1
lea eax, [ebp - 0x100]
push eax
push esi
lea ecx, [ebp - 0x9c]
push 0x100a0314
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
mov ecx, 0x1019593c
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d54c
mov edx, dword [0x1019593c]
mov eax, dword [edx + esi*4]
lea ecx, [ebp - 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d530
test dl, dl
je 0x1005d52c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d530
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d510
xor eax, eax
jmp 0x1005d535
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d5e3
mov ecx, 0x1019593c
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d501
lea edx, [ebp - 0x9c]
push edx
mov ecx, 0x1019593c
call fcn.10001100
movzx eax, word [edi + 0x18]
push eax
mov ecx, 0x101971b4
call fcn.100011e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x101b8d04]
cmp eax, 0x7d0
jb 0x1005d640
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1005d640
xor ebx, ebx
call fcn.10006a60
test eax, eax
je 0x1005d640
mov edi, dword [ebp - 0x108]
add edi, 0x53c
nop
mov esi, dword [edi]
test esi, esi
je 0x1005d62f
mov ecx, dword [ebp - 0x104]
lea eax, [esi + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d5f6
test dl, dl
je 0x1005d5df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d5f6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d5c3
xor eax, eax
jmp 0x1005d5fb
mov eax, dword [0x101971b4]
movzx ecx, word [edi + 0x18]
mov eax, dword [eax + esi*4]
add dword [eax], ecx
jmp 0x1005d56c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005d62f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101b8d04], eax
mov eax, dword [esi + 0xd4c]
cdq
push edx
push eax
push 3
push esi
call fcn.10038ae0
mov eax, dword [esi + 0xd4c]
cdq
push edx
push eax
push 4
push esi
call fcn.10038ae0
add esp, 0x20
inc ebx
add edi, 4
call fcn.10006a60
cmp ebx, eax
jb 0x1005d5b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100867e6
mov esp, ebp
pop ebp
ret