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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6349e2
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x7f325c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 1
jne 0x5faa76
mov dword [ebp - 0x28], 0
push 0x19
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x10]
push edx
call fcn.005fb7a0
add esp, 8
movzx eax, al
test eax, eax
je 0x5fa623
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x19
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.005efb70
add esp, 4
push 0x7f50ec
lea ecx, [ebp - 0x88]
call fcn.005f5eb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
mov edx, dword [0x7f5248]
push edx
call fcn.005fd280
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x5fa674
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.005f6650
jmp 0x5fad97
mov eax, dword [ebp - 0x54]
sub eax, 8
mov dword [ebp - 0x28], eax
push 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x10]
push edx
call fcn.005fb7a0
add esp, 8
movzx eax, al
test eax, eax
je 0x5fa83f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x40], edx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x28]
add edx, 0x2c
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x2c], edx
je 0x5fa80e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x40], 0
jne 0x5fa6dd
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jbe 0x5fa6dd
jmp 0x5fa80e
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xa8]
test ecx, ecx
je 0x5fa71d
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005fd530
add esp, 8
jmp 0x5fa6ae
push 0x7f50ec
lea ecx, [ebp - 0x98]
call fcn.005f5ee0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 8
push eax
call fcn.005efb70
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.005f6670
cmp dword [ebp - 0x3c], 0
jne 0x5fa7d4
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x14], 0
jne 0x5fa778
mov edx, dword [ebp - 0x28]
mov byte [edx + 0xa8], 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 0xac], 0xea60
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x34]
cmp eax, dword [edx + 0x14]
jb 0x5fa79a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x34], eax
jmp 0x5fa7a4
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax + 0x14]
jb 0x5fa7bd
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
sub eax, dword [edx + 0x14]
mov dword [ebp - 0x40], eax
jmp 0x5fa7c4
mov dword [ebp - 0x40], 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005fd530
add esp, 8
jmp 0x5fa809
mov edx, dword [ebp - 0x28]
add edx, 0x2c
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov dword [eax], edx
jmp 0x5fa80e
jmp 0x5fa6ae
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0xa2]
test edx, edx
jne 0x5fa83f
mov eax, dword [ebp - 0x28]
add eax, 0x2c
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x2c], eax
jne 0x5fa83f
push 4
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call fcn.005efe20
add esp, 0xc
push 5
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10]
push eax
call fcn.005fb7a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5fa9f4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x44], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x28]
add edx, 0x38
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x38], edx
je 0x5fa9c3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x44], 0
jne 0x5fa89f
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 0
jbe 0x5fa89f
jmp 0x5fa9c3
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [edx], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xa9]
test ecx, ecx
je 0x5fa8df
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005fd530
add esp, 8
jmp 0x5fa870
push 0x7f50ec
lea ecx, [ebp - 0xa0]
call fcn.005f5ee0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 8
push eax
call fcn.005efb70
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.005f6670
cmp dword [ebp - 0x3c], 0
jne 0x5fa989
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x14], 0
jne 0x5fa92d
mov edx, dword [ebp - 0x28]
mov byte [edx + 0xa9], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x40]
cmp edx, dword [ecx + 0x14]
jb 0x5fa94f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x40]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x40], edx
jmp 0x5fa959
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edx + 0x14]
jb 0x5fa972
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x44]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0x44], edx
jmp 0x5fa979
mov dword [ebp - 0x44], 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005fd530
add esp, 8
jmp 0x5fa9be
mov ecx, dword [ebp - 0x28]
add ecx, 0x38
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x50]
mov dword [edx], ecx
jmp 0x5fa9c3
jmp 0x5fa870
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xa2]
test ecx, ecx
jne 0x5fa9f4
mov edx, dword [ebp - 0x28]
add edx, 0x38
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x38], edx
jne 0x5fa9f4
push 5
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.005efe20
add esp, 0xc
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x40], 0x100000
ja 0x5faa3b
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x34], 0x100000
ja 0x5faa3b
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x28], 0x40000
ja 0x5faa3b
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x1c], 0x800000
ja 0x5faa3b
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0xa0]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005ef020
add esp, 8
push 1
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10]
push eax
call fcn.005fb7a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5faa5f
mov edx, dword [ebp - 0x28]
push edx
call fcn.005ef710
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.005f6650
jmp 0x5fad97
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 2
jne 0x5fad97
mov dword [ebp - 0x30], 0
push 0x7f50ec
lea ecx, [ebp - 0x90]
call fcn.005f5eb0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
mov ecx, dword [0x7f525c]
push ecx
call fcn.005fd280
add esp, 0xc
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x5faadb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.005f6650
jmp 0x5fad97
mov edx, dword [ebp - 0x70]
sub edx, 8
mov dword [ebp - 0x30], edx
push 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005fb7a0
add esp, 8
movzx edx, al
test edx, edx
je 0x5fabeb
mov eax, dword [ebp - 0x30]
add eax, 0x2c
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x2c], eax
je 0x5fabbe
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x38], eax
push 0x7f50ec
lea ecx, [ebp - 0xa8]
call fcn.005f5ee0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
add ecx, 8
push ecx
call fcn.005efb70
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.005f6670
cmp dword [ebp - 0x3c], 0
jne 0x5fabbc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x34]
cmp ecx, dword [eax + 0x14]
jb 0x5fab78
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x34], ecx
jmp 0x5fab82
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [edx], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov dword [ecx + 4], edx
push 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.005fd530
add esp, 8
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0xbb], 1
jmp 0x5fabc8
mov edx, dword [ebp - 0x30]
mov byte [edx + 0xbb], 0
mov eax, dword [ebp - 0x30]
add eax, 0x2c
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x2c], eax
jne 0x5fabeb
push 0xc
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call fcn.005efe20
add esp, 0xc
push 0xd
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10]
push eax
call fcn.005fb7a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5fad1a
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x38
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x38], ecx
je 0x5facf7
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x38], ecx
push 0x7f50ec
lea ecx, [ebp - 0xb0]
call fcn.005f5ee0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x38]
add edx, 8
push edx
call fcn.005efb70
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.005f6670
cmp dword [ebp - 0x3c], 0
jne 0x5facf0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x40]
cmp edx, dword [ecx + 0x14]
jb 0x5fac8c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x40]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x40], edx
jmp 0x5fac96
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
cmp eax, dword [edx + 0x14]
jb 0x5facaf
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x48]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0x48], edx
jmp 0x5facb6
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov dword [eax + 4], ecx
push 0
mov edx, dword [ebp - 0x38]
push edx
call fcn.005fd530
add esp, 8
cmp dword [ebp - 0x48], 0
jne 0x5facee
jmp 0x5facf7
jmp 0x5facf2
jmp 0x5facf7
jmp 0x5fac10
mov eax, dword [ebp - 0x30]
add eax, 0x38
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x38], eax
jne 0x5fad1a
push 0xd
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call fcn.005efe20
add esp, 0xc
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x40], 0x100000
ja 0x5fad61
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x34], 0x100000
ja 0x5fad61
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x28], 0x800000
ja 0x5fad61
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x1c], 0x800000
ja 0x5fad61
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0xb9]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.005ef170
add esp, 8
push 9
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005fb7a0
add esp, 8
movzx edx, al
test edx, edx
je 0x5fad85
mov eax, dword [ebp - 0x30]
push eax
call fcn.005ef9d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.005f6650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00615a5d
mov esp, ebp
pop ebp
ret