Function at 0x591fac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x591fb5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x5923a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 3
mov edx, esi
mov eax, ebx
call fcn.00591d78
mov ebx, eax
mov eax, 0x70c29c
call fcn.00404a34
mov eax, dword [0x70c2b0]
mov edx, 0x5923c4
call fcn.00404e30
jne 0x592084
mov cl, 1
mov dl, 1
mov eax, dword [0x70c2a8]
call fcn.0058b9f8
mov edx, 0x5923cc
lea eax, [ebp - 0x1c]
call fcn.004031bc
lea eax, [ebp - 0x20]
mov edx, esi
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040318c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00404c90
push dword [ebp - 0x18]
push dword [ebp - 4]
push 0x5923d8
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404c14
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404dac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x70c2a8]
call fcn.0058bc48
mov eax, dword [0x70c2b0]
mov edx, 0x5923e4
call fcn.00404e30
je 0x5920aa
mov eax, dword [0x70c2b0]
mov edx, 0x5923f8
call fcn.00404e30
jne 0x59212d
mov edx, 0x5923cc
lea eax, [ebp - 0x1c]
call fcn.004031bc
lea eax, [ebp - 0x20]
mov edx, esi
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040318c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
call fcn.00404c90
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0x5923d8
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404c14
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404dac
mov eax, dword [ebp - 0xc]
call fcn.00404cec
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ee4
mov edx, eax
mov eax, dword [0x70c2ac]
pop ecx
call fcn.00590ce4
test al, al
jne 0x59212d
mov dword [ebp - 8], 0xffffffff
jmp 0x592376
cmp esi, 0x22
jne 0x59213c
mov eax, 0x70c2a0
call fcn.00404a34
mov eax, 0x70c2a4
call fcn.00404a34
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov eax, dword [0x70ac0c]
mov eax, dword [eax]
call fcn.0046ede4
call sub.kernel32.dll_GetTickCount
mov ebx, eax
sub ebx, edi
cmp ebx, dword [ebp + 8]
jge 0x59217b
mov edx, dword [0x70c29c]
mov eax, 0x5923d8
call fcn.00405028
test eax, eax
je 0x59214d
xor ebx, ebx
mov eax, dword [0x70c29c]
call fcn.00404cec
cmp eax, 4
jl 0x5921e6
mov edx, 0x5923cc
lea eax, [ebp - 0x1c]
call fcn.004031bc
lea eax, [ebp - 0x20]
mov edx, esi
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040318c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x30]
call fcn.00404c90
mov eax, dword [ebp - 0x30]
mov edx, dword [0x70c29c]
call fcn.00405028
mov ebx, eax
test ebx, ebx
je 0x5921d5
add ebx, 2
jmp 0x5921da
mov ebx, 4
mov eax, dword [0x70c29c]
movzx eax, byte [eax + ebx - 1]
mov ebx, eax
cmp ebx, 0x20
je 0x5921f4
cmp ebx, 0x23
jne 0x59236f
mov eax, dword [0x70c2b0]
mov edx, 0x5923f8
call fcn.00404e30
jne 0x5922c4
cmp esi, 0x70
jne 0x5922c4
mov edx, dword [0x70c29c]
mov eax, 0x5923d8
call fcn.00405028
test eax, eax
je 0x5922c4
mov edx, 0x5923cc
lea eax, [ebp - 0x1c]
call fcn.004031bc
lea eax, [ebp - 0x20]
mov edx, esi
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040318c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x34]
call fcn.00404c90
mov eax, dword [ebp - 0x34]
mov edx, dword [0x70c29c]
call fcn.00405028
mov ebx, eax
test ebx, ebx
je 0x592273
add ebx, 2
jmp 0x592278
mov ebx, 4
inc ebx
push 0x70c2a0
mov eax, dword [0x70c29c]
call fcn.00404cec
mov ecx, eax
sub ecx, ebx
mov edx, ebx
mov eax, dword [0x70c29c]
call fcn.00404f44
lea edx, [ebp - 0x10]
mov eax, dword [0x70c2a0]
call fcn.00591de0
mov eax, dword [ebp - 0x10]
mov edx, 0x592408
call fcn.00404e30
je 0x59234f
mov dword [ebp - 8], 0xffffffff
jmp 0x592376
cmp esi, 0x22
jne 0x59234f
mov edx, dword [0x70c29c]
mov eax, 0x5923d8
call fcn.00405028
test eax, eax
je 0x59234f
mov edx, 0x5923cc
lea eax, [ebp - 0x1c]
call fcn.004031bc
lea eax, [ebp - 0x20]
mov edx, esi
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.0040318c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x38]
call fcn.00404c90
mov eax, dword [ebp - 0x38]
mov edx, dword [0x70c29c]
call fcn.00405028
mov ebx, eax
test ebx, ebx
je 0x59232a
add ebx, 2
jmp 0x59232f
mov ebx, 4
inc ebx
push 0x70c2a0
mov eax, dword [0x70c29c]
call fcn.00404cec
mov ecx, eax
sub ecx, ebx
mov edx, ebx
mov eax, dword [0x70c29c]
call fcn.00404f44
cmp esi, 0x59
jne 0x592376
push 0x70c2a4
mov ecx, 6
mov edx, 5
mov eax, dword [0x70c29c]
call fcn.00404f44
jmp 0x592376
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5923ad
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00404a58
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404a58
lea eax, [ebp - 4]
call fcn.00404a34
ret