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

Disassembly:
push 0xffffffffffffffff
push 0x6473ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20c]
push edi
mov edi, ecx
push esi
mov dword [esp + 0x20], edi
call fcn.00528740
xor ebp, ebp
cmp eax, ebp
je 0x52b693
mov eax, dword [eax + 0x1290]
jmp 0x52ba7c
push 0x15ec
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov dword [esp + 0x208], ebp
je 0x52b6b8
mov ecx, eax
call fcn.005342d0
mov ebp, eax
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [esp + 0x208], 0xffffffff
call ebx
mov dword [ebp + 0x140c], eax
mov dword [ebp + 0x1408], eax
mov dword [ebp + 0x1404], eax
mov dword [ebp + 0x1400], eax
mov dword [ebp + 0x13fc], eax
mov eax, dword [esp + 0x214]
lea ecx, [ebp + 0x1298]
mov dword [ebp + 0x1288], esi
mov dword [ebp + 0x13a0], 1
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x52b708
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x224]
lea eax, [ebp + 0x1278]
mov dword [eax], ecx
mov ecx, dword [esp + 0x228]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x22c]
mov dword [eax + 8], ecx
mov dword [ebp + 0x1284], edx
mov esi, dword [edi + 0x30]
inc esi
mov eax, esi
mov dword [edi + 0x30], esi
mov esi, dword [esp + 0x21c]
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x1290], eax
mov eax, esi
sub ecx, esi
nop
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x52b760
mov ecx, dword [0x64fc94]
lea eax, [ebp + 0x114]
mov dword [eax], ecx
mov dx, word [0x64fc98]
mov word [eax + 4], dx
mov cl, byte [0x64fc9a]
mov byte [eax + 6], cl
mov eax, dword [str.HAIR01]
lea edx, [ebp + 0x218]
mov dword [edx], eax
mov cx, word [0x64fca0]
mov word [edx + 4], cx
mov al, byte [0x64fca2]
mov byte [edx + 6], al
call ebx
mov dword [ebp + 4], eax
lea eax, [ebp + 0x33a]
mov ecx, 0xf
lea esp, [esp]
mov dl, byte [0x64f55f]
mov byte [eax], dl
add eax, 0x100
dec ecx
jne 0x52b7c0
mov eax, dword [edi + 0x30]
push 0
push 0xffffffffffffffff
push eax
push str.HAIR01
push 0x64fc94
push esi
mov ecx, edi
call fcn.00529b70
mov ebx, eax
test ebx, ebx
je 0x52ba7c
fld dword [esp + 0x220]
call fcn.0061672c
test eax, eax
je 0x52b849
fld dword [esp + 0x228]
call fcn.0061672c
test eax, eax
je 0x52b849
lea eax, [ebx + 0x1c]
mov edx, eax
mov esi, dword [edx]
lea ecx, [ebx + 0x28]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x224]
mov dword [eax], ecx
mov ecx, dword [esp + 0x228]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x22c]
push edx
mov ecx, ebx
call fcn.00404ba0
cmp ebx, dword [ebx + 0x44]
jne 0x52b86e
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x52b86e
mov dword [eax + 0x18], 0
mov ecx, ebx
mov dword [ebp + 0xc], ebx
call fcn.00590570
mov ecx, dword [esp + 0x210]
movzx eax, al
push ecx
mov dword [ebp + 0x15e8], eax
call dword [0x8bd314]
add esp, 4
cmp eax, 5
ja case.0x52b89b.3
jmp dword [eax*4 + 0x52ba98]
push 0
push ebx
call fcn.00578fb0
mov byte [ebp + 0x13f0], 0
jmp 0x52b997
lea edx, [esp + 0x110]
push ebx
push edx
call fcn.00578fd0
mov esi, eax
mov ecx, 0x3c
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
sub esp, 0xe8
mov ecx, 0x3c
lea esi, [esp + 0x110]
mov edi, esp
mov dword [esp + 0x110], 4
rep movsd dword es:[edi], dword [esi]
call fcn.00579010
push 3
push ebx
call fcn.00578fb0
fld dword [esp + 0x31c]
add esp, 0xf8
fsub dword [0x657fc0]
lea eax, [esp + 0x220]
push eax
mov ecx, ebx
fstp dword [esp + 0x228]
call fcn.00404b50
mov edi, dword [esp + 0x1c]
mov byte [ebp + 0x13f0], 3
jmp case.0x52b89b.3
mov al, byte [esp + 0x218]
test al, al
je 0x52b977
push 3
push ebx
call fcn.00578fb0
fld dword [esp + 0x22c]
fsub dword [0x657fc0]
add esp, 8
lea ecx, [esp + 0x220]
push ecx
mov ecx, ebx
fstp dword [esp + 0x228]
call fcn.00404b50
mov byte [ebp + 0x13f0], 3
jmp case.0x52b89b.3
push 2
push ebx
call fcn.00578fb0
mov byte [ebp + 0x13f0], 2
jmp 0x52b997
push 3
push ebx
call fcn.00578fb0
mov byte [ebp + 0x13f0], 3
add esp, 8
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [edi + 0x14]
mov dword [ebp + 0x1408], eax
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jne 0x52b9c6
test eax, eax
je 0x52b9b9
add eax, eax
jmp 0x52b9be
mov eax, 0x10
push eax
mov ecx, ebx
call fcn.00596a90
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [eax + edx*4], ebp
inc dword [ebx + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x52ba76
xor esi, esi
push esi
sub esp, 0xc
xor ecx, ecx
mov edi, esp
mov dword [edi], ecx
xor edx, edx
mov dword [edi + 4], edx
push eax
mov dword [edi + 8], esi
call fcn.00578ae0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
call fcn.0058fcb0
test eax, eax
mov dword [esp + 0x18], eax
jle 0x52ba76
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x52ba76
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x52ba76
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
mov esi, dword [edx + ecx*4]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x52ba65
cmp ecx, eax
jge 0x52ba65
test esi, esi
je 0x52ba65
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52ba46
sub eax, edi
cmp eax, 1
jbe 0x52ba65
mov edx, dword [ebx]
mov ecx, dword [edx + ecx*4]
push 1
push 1
push 0
push esi
call fcn.005349d0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x52ba24
mov eax, dword [ebp + 0x1290]
mov ecx, dword [esp + 0x200]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1fc
ret 0x20