Function at 0x1005d090
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 [0x36208e4]
movzx eax, word [eax + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
cmp ecx, eax
jne 0x1005d610
cmp word [edi + 4], 0x3b
jne 0x1005d1ff
cmp word [edi + 6], 0x1c
jne 0x1005d1ff
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.1004b170
mov ebx, dword [0x101435f0]
add esp, 0x14
xor edi, edi
test ebx, ebx
jle 0x1005d162
mov esi, 0x10142df8
lea ecx, [ebp - 0x38]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d126
test dl, dl
je 0x1005d122
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d126
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d106
xor eax, eax
jmp 0x1005d12b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d139
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x1005d101
jmp 0x1005d162
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.100080a0
add esp, 4
call esi
mov dword [0x101b8994], eax
mov ecx, 0x10197cdc
xor esi, esi
call fcn.10001040
test eax, eax
jle 0x1005d1b8
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 0x1005d1a0
test dl, dl
je 0x1005d19c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d1a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d180
xor eax, eax
jmp 0x1005d1a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d1e3
mov ecx, 0x10197cdc
inc esi
call fcn.10001040
cmp esi, eax
jl 0x1005d172
push 1
mov ecx, 0x10199554
call fcn.100011f0
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x10197cdc
call fcn.10001110
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
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.10086746
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d610
cmp word [edi + 4], 0xd
jne 0x1005d2ef
cmp word [edi + 6], 0x7b
jne 0x1005d2ef
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp word [edi + 8], 1
jne 0x1005d610
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.1004b170
add esp, 8
mov ecx, 0x10199cf4
xor esi, esi
call fcn.10001040
test eax, eax
jle 0x1005d2a8
jmp 0x1005d260
mov eax, dword [0x10199cf4]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x38]
jmp 0x1005d270
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d290
test dl, dl
je 0x1005d28c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d290
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d270
xor eax, eax
jmp 0x1005d295
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d2d3
mov ecx, 0x10199cf4
inc esi
call fcn.10001040
cmp esi, eax
jl 0x1005d260
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x10199cf4
call fcn.10001110
push 1
mov ecx, 0x1019a6ec
call fcn.100011f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
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.10086746
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d610
mov eax, 0x93
cmp word [edi + 4], ax
jne 0x1005d610
mov ecx, 0x88
cmp word [edi + 6], cx
jne 0x1005d610
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 0x1005d3ed
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.1004b170
mov edi, dword [edi + 0x18]
add esp, 8
mov ecx, 0x10190d5c
xor esi, esi
call fcn.10001040
test eax, eax
jle 0x1005d3a8
jmp 0x1005d360
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 0x1005d390
test dl, dl
je 0x1005d38c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d390
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d370
xor eax, eax
jmp 0x1005d395
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d3d2
mov ecx, 0x10190d5c
inc esi
call fcn.10001040
cmp esi, eax
jl 0x1005d360
lea ecx, [ebp - 0x38]
push ecx
mov ecx, 0x10190d5c
call fcn.10001110
push edi
mov ecx, 0x1019561c
call fcn.100011f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
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.10086746
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1005d413
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.1004b170
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x1005d421
cmp eax, 4
jne 0x1005d610
movzx ecx, byte [edi + 0x41]
mov eax, dword [0x35f42ac]
mov esi, dword [eax + ecx*4 + 0x53c]
mov dword [ebp - 0x108], eax
test esi, esi
je 0x1005d610
cmp word [edi + 0x18], 0
jbe 0x1005d610
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.10019840
add esi, 0x64
add esp, 0x20
cmp byte [ebp - 0x100], 0
mov dword [ebp - 0x104], esi
jne 0x1005d4a4
push esi
lea edx, [ebp - 0x9c]
push 0x1009648c
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x1005d4c1
lea eax, [ebp - 0x100]
push eax
push esi
lea ecx, [ebp - 0x9c]
push 0x100a02c4
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
mov ecx, 0x1019593c
xor esi, esi
call fcn.10001040
test eax, eax
jle 0x1005d51c
mov edx, dword [0x1019593c]
mov eax, dword [edx + esi*4]
lea ecx, [ebp - 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d500
test dl, dl
je 0x1005d4fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d500
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d4e0
xor eax, eax
jmp 0x1005d505
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d5b3
mov ecx, 0x1019593c
inc esi
call fcn.10001040
cmp esi, eax
jl 0x1005d4d1
lea edx, [ebp - 0x9c]
push edx
mov ecx, 0x1019593c
call fcn.10001110
movzx eax, word [edi + 0x18]
push eax
mov ecx, 0x101971b4
call fcn.100011f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x101b8d04]
cmp eax, 0x7d0
jb 0x1005d610
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1005d610
xor ebx, ebx
call fcn.10006aa0
test eax, eax
je 0x1005d610
mov edi, dword [ebp - 0x108]
add edi, 0x53c
nop
mov esi, dword [edi]
test esi, esi
je 0x1005d5ff
mov ecx, dword [ebp - 0x104]
lea eax, [esi + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d5c6
test dl, dl
je 0x1005d5af
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d5c6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d593
xor eax, eax
jmp 0x1005d5cb
mov eax, dword [0x101971b4]
movzx ecx, word [edi + 0x18]
mov eax, dword [eax + esi*4]
add dword [eax], ecx
jmp 0x1005d53c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005d5ff
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.10038a30
mov eax, dword [esi + 0xd4c]
cdq
push edx
push eax
push 4
push esi
call fcn.10038a30
add esp, 0x20
inc ebx
add edi, 4
call fcn.10006aa0
cmp ebx, eax
jb 0x1005d580
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086746
mov esp, ebp
pop ebp
ret