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

Disassembly:
push 0xffffffffffffffff
push 0x64771b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
push 0x15ec
mov esi, ecx
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x5394d2
mov ecx, eax
call fcn.005342d0
jmp 0x5394d4
xor eax, eax
mov ebp, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 8], eax
call ebp
mov ecx, dword [esi + 8]
mov dword [ecx + 0x140c], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x140c]
mov dword [eax + 0x1408], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x1408]
mov dword [eax + 0x1404], ecx
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x1404]
mov dword [eax + 0x1400], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x1400]
mov dword [eax + 0x13fc], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x1288], 0x1000002d
mov eax, dword [esi + 8]
mov dword [eax + 0x13a0], 1
mov eax, dword [esi + 8]
add eax, 0x1298
mov dl, byte [ecx]
inc ecx
mov byte [eax], dl
inc eax
test dl, dl
jne 0x539552
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add ecx, 0x1278
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x1284], ecx
mov eax, dword [esi + 0xc]
inc dword [eax + 0x30]
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0x30]
mov eax, dword [esi + 8]
mov dword [eax + 0x1290], ecx
mov edx, dword [esi + 8]
mov eax, dword [0x65f154]
add edx, 0x10
mov dword [edx], eax
mov ecx, dword [0x65f158]
mov dword [edx + 4], ecx
mov eax, dword [0x65f15c]
mov dword [edx + 8], eax
mov ecx, dword [0x65f160]
mov dword [edx + 0xc], ecx
mov eax, dword [0x65f164]
mov dword [edx + 0x10], eax
mov cl, byte [0x65f168]
mov byte [edx + 0x14], cl
mov edx, dword [esi + 8]
mov eax, dword [0x64fc94]
add edx, 0x114
mov dword [edx], eax
mov cx, word [0x64fc98]
mov word [edx + 4], cx
mov al, byte [0x64fc9a]
mov byte [edx + 6], al
mov ecx, dword [esi + 8]
mov edx, dword [str.HAIR01]
add ecx, 0x218
mov dword [ecx], edx
mov ax, word [0x64fca0]
mov word [ecx + 4], ax
mov dl, byte [0x64fca2]
mov byte [ecx + 6], dl
call ebp
mov ecx, dword [esi + 8]
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x539630
mov edx, dword [esi + 8]
mov cl, byte [0x64f55f]
mov byte [eax + edx + 0x33a], cl
add eax, 0x100
cmp eax, 0xf00
jl 0x539630
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x30]
push 0
push 0xffffffffffffffff
push edx
push str.HAIR01
push 0x64fc94
push 0x65f154
call fcn.00529b70
fld dword [esp + 0x2c]
mov edi, eax
call fcn.0061672c
test eax, eax
je 0x5396b3
fld dword [esp + 0x34]
call fcn.0061672c
test eax, eax
je 0x5396b3
lea eax, [edi + 0x1c]
mov edx, eax
mov ebx, dword [edx]
lea ecx, [edi + 0x28]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
push edx
mov ecx, edi
call fcn.00404ba0
cmp edi, dword [edi + 0x44]
jne 0x5396d5
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x5396d5
mov dword [eax + 0x18], 0
mov eax, dword [esi + 8]
mov ecx, edi
mov dword [eax + 0xc], edi
call fcn.00590570
mov ecx, dword [esi + 8]
movzx eax, al
push 0
push edi
mov dword [ecx + 0x15e8], eax
call fcn.00578fb0
mov edx, dword [esi + 8]
add esp, 8
mov byte [edx + 0x13f0], 0
call ebp
mov ecx, dword [esi + 8]
mov dword [ecx + 0x1408], eax
mov edx, dword [esi + 8]
mov word [edx + 0x15dc], 0x15ca
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov ebx, dword [esi + 8]
add edi, 0x14
cmp ecx, eax
jne 0x539774
test eax, eax
je 0x539735
add eax, eax
jmp 0x53973a
mov eax, 0x10
mov ebp, dword [edi]
mov dword [edi + 8], eax
shl eax, 2
push eax
call fcn.00614c96
mov ecx, dword [edi + 4]
mov dword [edi], eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x539767
mov ecx, dword [edi]
mov edx, dword [ebp + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jl 0x539756
test ebp, ebp
je 0x539774
push ebp
call fcn.00616a81
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], ebx
inc dword [edi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5397ec
xor edi, edi
push edi
sub esp, 0xc
xor ecx, ecx
mov ebx, esp
xor edx, edx
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov edx, dword [eax + 0xc]
push edx
mov dword [ebx + 8], edi
call fcn.00578ae0
mov ecx, dword [esi + 8]
add esp, 0x14
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
mov ecx, dword [ecx + 0xc]
push eax
call fcn.0058fcb0
mov ebp, eax
cmp ebp, edi
jle 0x5397ec
cmp dword [esp + 0x38], edi
je 0x5397ec
cmp ebp, edi
jle 0x5397ec
lea ecx, [ecx]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + edi*4]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x18]
push 1
push eax
dec edx
push edx
call fcn.005284d0
inc edi
cmp edi, ebp
jl 0x5397d0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x18