Function at 0x1005d050
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 [0x2fb6ac4]
movzx eax, word [eax + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
cmp ecx, eax
jne 0x1005d5d0
cmp word [edi + 4], 0x3b
jne 0x1005d1bf
cmp word [edi + 6], 0x1c
jne 0x1005d1bf
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.1004afe0
mov ebx, dword [0x101435f0]
add esp, 0x14
xor edi, edi
test ebx, ebx
jle 0x1005d122
mov esi, 0x10142df8
lea ecx, [ebp - 0x38]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d0e6
test dl, dl
je 0x1005d0e2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d0e6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d0c6
xor eax, eax
jmp 0x1005d0eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d0f9
inc edi
add esi, 0x14
cmp edi, ebx
jl 0x1005d0c1
jmp 0x1005d122
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.10008080
add esp, 4
call esi
mov dword [0x101b8994], eax
mov ecx, 0x10197cdc
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d178
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 0x1005d160
test dl, dl
je 0x1005d15c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d160
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d140
xor eax, eax
jmp 0x1005d165
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d1a3
mov ecx, 0x10197cdc
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d132
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.10086738
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.10086738
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d5d0
cmp word [edi + 4], 0xd
jne 0x1005d2af
cmp word [edi + 6], 0x7b
jne 0x1005d2af
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp word [edi + 8], 1
jne 0x1005d5d0
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.1004afe0
add esp, 8
mov ecx, 0x10199cf4
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d268
jmp 0x1005d220
mov eax, dword [0x10199cf4]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x38]
jmp 0x1005d230
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d250
test dl, dl
je 0x1005d24c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d250
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d230
xor eax, eax
jmp 0x1005d255
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d293
mov ecx, 0x10199cf4
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d220
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.10086738
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.10086738
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jne 0x1005d5d0
mov eax, 0x93
cmp word [edi + 4], ax
jne 0x1005d5d0
mov ecx, 0x88
cmp word [edi + 6], cx
jne 0x1005d5d0
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 0x1005d3ad
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.1004afe0
mov edi, dword [edi + 0x18]
add esp, 8
mov ecx, 0x10190d5c
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1005d368
jmp 0x1005d320
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 0x1005d350
test dl, dl
je 0x1005d34c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d350
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d330
xor eax, eax
jmp 0x1005d355
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d392
mov ecx, 0x10190d5c
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d320
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.10086738
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.10086738
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1005d3d3
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.1004afe0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086738
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x1005d3e1
cmp eax, 4
jne 0x1005d5d0
movzx ecx, byte [edi + 0x41]
mov eax, dword [0x2f98458]
mov esi, dword [eax + ecx*4 + 0x53c]
mov dword [ebp - 0x108], eax
test esi, esi
je 0x1005d5d0
cmp word [edi + 0x18], 0
jbe 0x1005d5d0
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.10019920
add esi, 0x64
add esp, 0x20
cmp byte [ebp - 0x100], 0
mov dword [ebp - 0x104], esi
jne 0x1005d464
push esi
lea edx, [ebp - 0x9c]
push 0x1009648c
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x1005d481
lea eax, [ebp - 0x100]
push eax
push esi
lea ecx, [ebp - 0x9c]
push 0x100a02ec
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 0x1005d4dc
mov edx, dword [0x1019593c]
mov eax, dword [edx + esi*4]
lea ecx, [ebp - 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d4c0
test dl, dl
je 0x1005d4bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d4c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d4a0
xor eax, eax
jmp 0x1005d4c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1005d573
mov ecx, 0x1019593c
inc esi
call fcn.10001240
cmp esi, eax
jl 0x1005d491
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 0x1005d5d0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1005d5d0
xor ebx, ebx
call fcn.10006a60
test eax, eax
je 0x1005d5d0
mov edi, dword [ebp - 0x108]
add edi, 0x53c
nop
mov esi, dword [edi]
test esi, esi
je 0x1005d5bf
mov ecx, dword [ebp - 0x104]
lea eax, [esi + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005d586
test dl, dl
je 0x1005d56f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005d586
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005d553
xor eax, eax
jmp 0x1005d58b
mov eax, dword [0x101971b4]
movzx ecx, word [edi + 0x18]
mov eax, dword [eax + esi*4]
add dword [eax], ecx
jmp 0x1005d4fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005d5bf
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.10038a40
mov eax, dword [esi + 0xd4c]
cdq
push edx
push eax
push 4
push esi
call fcn.10038a40
add esp, 0x20
inc ebx
add edi, 4
call fcn.10006a60
cmp ebx, eax
jb 0x1005d540
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086738
mov esp, ebp
pop ebp
ret