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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x6f2220]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xb0814], 0
je 0x523910
mov ecx, dword [ebp - 8]
call fcn.00522840
jmp 0x523c94
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb0810]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb0810]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1e
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb0824]
sub edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0xb0824], edx
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xb0824], 0
jl 0x523b44
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0828]
call fcn.005361a0
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0828]
call fcn.005361a0
mov ecx, dword [ebp - 0x18]
mov byte [ebp + ecx - 0x58], 0
push 0xc
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0828]
call fcn.005361a0
push 0x10
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xb0828]
call fcn.005361a0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xb0818], 4
jb 0x5239f9
push 0xc
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xb0828]
call fcn.005361a0
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0057b7e7
jmp 0x523a31
push 4
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xb0828]
call fcn.005361a0
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0057b7e7
mov dword [ebp - 0xc8], 0x46000000
mov dword [ebp - 0xcc], 0x49000000
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0057bbe5
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.0057af02
fld dword [ebp - 0x64]
fmul dword [ebp - 0xc8]
fild dword [ebp - 0xc]
fmul dword [ebp - 0xc8]
faddp st(1)
fld dword [ebp - 0xcc]
fdiv dword [0x6928b4]
fsubp st(1)
fstp dword [ebp - 0x120]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x11c], eax
fld dword [ebp - 0x60]
fmul dword [ebp - 0xc8]
fild dword [ebp - 0x10]
fmul dword [ebp - 0xc8]
faddp st(1)
fld dword [ebp - 0xcc]
fdiv dword [0x6928b4]
fsubp st(1)
fstp dword [ebp - 0x118]
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00560d10
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x523b0b
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb07cc]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x154]
mov dword [eax + 0xb07cc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x523b3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
test eax, eax
jle 0x523b3f
push fcn.005238d0
mov ecx, dword [ebp - 8]
call fcn.00572200
jmp 0x523c94
jmp 0x523940
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xb0818], 7
jb 0x523b85
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0xb07ec]
cmp ecx, dword [eax + 0xb081c]
jne 0x523b78
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0xb080c]
cmp ecx, dword [eax + 0xb0820]
je 0x523b85
mov ecx, dword [ebp - 8]
call fcn.00522840
jmp 0x523c94
mov ecx, dword [ebp - 8]
call fcn.00524050
mov ecx, dword [ebp - 8]
add ecx, 0xb07d0
call fcn.005360b0
mov ecx, dword [ebp - 8]
add ecx, 0xb07f0
call fcn.005360b0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb0810]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x94], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x15c]
push eax
mov ecx, 0x7dbba8
call fcn.004b2590
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb0810]
mov ecx, dword [eax + 0x8c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb0810]
mov ecx, dword [eax + 0x88]
push ecx
call fcn.00527a80
add esp, 0xc
mov ecx, dword [ebp - 8]
call fcn.00524800
mov edx, 1
test edx, edx
je 0x523c14
jmp 0x523c7c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x160], ecx
cmp dword [0x7dbbd0], 0x10
jb 0x523c37
mov edx, dword [0x7dbbbc]
mov dword [ebp - 0x164], edx
jmp 0x523c41
mov dword [ebp - 0x164], 0x7dbbbc
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb0810]
mov eax, dword [edx + 0x8c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb0810]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
push 0x6a3310
call fcn.00426670
add esp, 0x14
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xb0810]
call fcn.005615e0
push 0
mov ecx, dword [ebp - 8]
call fcn.00572260
mov ecx, dword [ebp - 4]
call fcn.00674e87
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret