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

Disassembly:
mov eax, 0x62665c
call fcn.0044c384
sub esp, 0x6c
push ebx
push esi
xor ebx, ebx
push edi
cmp word [ebp + 0x14], bx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
je 0x57d04b
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x14], eax
jmp 0x57d052
or dword [ebp - 0x14], 0xffffffff
mov esi, dword [ebp + 8]
cmp word [esi + 0x336], bx
lea edi, [esi + 0x336]
mov dword [ebp - 0x18], ebx
je 0x57d06f
push 0x20070032
call fcn.00598a7e
pop ecx
mov ax, word [ebp + 0x14]
push dword [ebp + 0xc]
mov word [esi + 0x2b2], ax
mov ax, word [ebp + 0x10]
push esi
mov word [edi], 1
mov word [esi + 0x2b4], ax
call fcn.00540353
pop ecx
mov dword [ebp - 4], ebx
pop ecx
call fcn.005989f0
mov dword [ebp - 0x30], eax
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
mov dword [eax], ecx
mov dword [ebp - 0x34], 0x5989d1
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esi + 0x3c0]
mov byte [ebp - 4], 1
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x3c4]
mov dword [esi + 0x33c], eax
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
jne 0x57d105
cmp dword [esi + 0x188], ebx
jne 0x57d105
mov ecx, dword [esi + 0x3c0]
cmp ecx, dword [esi + 0x360]
jne 0x57d105
mov ecx, dword [esi + 0x3c4]
cmp ecx, dword [esi + 0x364]
je 0x57d2b9
xor ecx, ecx
cmp eax, ebx
setne cl
xor eax, eax
cmp dword [esi + 0x188], ebx
push 8
mov dword [ebp - 0x1c], ecx
setne al
mov dword [ebp + 0x10], eax
lea eax, [esi + 0x3c0]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005a00cb
mov eax, dword [esi + 0x2d8]
mov edi, dword [esi + 0x33c]
add esp, 0xc
cmp eax, ebx
je 0x57d147
push esi
call eax
jmp 0x57d177
cmp dword [esi + 0x188], ebx
je 0x57d15b
push dword [ebp + 0x14]
push esi
call fcn.0055a593
pop ecx
jmp 0x57d177
movsx eax, word [edi]
mov ecx, dword [0x6b9ad0]
push esi
imul eax, dword [ecx]
add eax, dword [ecx + 0x10]
lea ecx, [edi + 2]
mov dword [esi + 0x33c], ecx
call dword [eax + 0x10]
cmp dword [esi + 0x188], ebx
pop ecx
jne 0x57d1fa
cmp word [ebp + 0x10], bx
jne 0x57d20e
cmp dword [esi + 0x2d8], ebx
je 0x57d198
cmp word [ebp - 0x1c], bx
jmp 0x57d1fe
mov edx, dword [esi + 0x3c0]
cmp dword [ebp - 0x24], edx
jne 0x57d1c0
mov eax, dword [esi + 0x3c4]
lea ecx, [esi + 0x3c4]
cmp dword [ebp - 0x20], eax
jne 0x57d1c0
sub eax, edi
add eax, dword [esi + 0x33c]
mov dword [ecx], eax
jmp 0x57d20e
cmp edx, 0xffffffff
jne 0x57d1e0
cmp dword [esi + 0x3c4], edx
lea eax, [esi + 0x3c4]
jne 0x57d1e0
mov dword [eax], ebx
mov dword [esi + 0x3c0], ebx
jmp 0x57d2b9
mov eax, dword [esi + 0x3e8]
mov eax, dword [eax + edx]
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x3c4]
mov dword [esi + 0x33c], eax
jmp 0x57d20e
cmp word [ebp + 0x10], bx
jne 0x57d20e
mov eax, dword [esi + 0x33c]
sub eax, edi
add dword [esi + 0x3c4], eax
cmp word [esi + 0xa6], bx
jne 0x57d2b9
cmp word [ebp + 0x14], bx
je 0x57d241
push ebx
push esi
call fcn.00544047
pop ecx
cmp ax, bx
pop ecx
je 0x57d238
mov word [esi + 0xa4], 1
cmp word [esi + 0xa4], bx
jne 0x57d2b9
cmp dword [ebp - 0x14], 0xffffffff
jae 0x57d261
cmp dword [esi + 0x2d8], ebx
jne 0x57d257
cmp dword [esi + 0x188], ebx
je 0x57d261
call fcn.005a259d
cmp eax, dword [ebp - 0x14]
ja 0x57d2b9
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 8
jl 0x57d0d3
mov eax, dword [ebp - 0x18]
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x57d0d3
cmp dword [ebp - 0x14], 0xffffffff
jae 0x57d29f
cmp dword [esi + 0x2d8], ebx
jne 0x57d29f
cmp dword [esi + 0x188], ebx
jne 0x57d29f
call fcn.005a259d
cmp eax, dword [ebp - 0x14]
jae 0x57d2b9
cmp word [ebp + 0x14], bx
je 0x57d0d3
push esi
call fcn.0053ee95
cmp ax, bx
pop ecx
je 0x57d0d3
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x57d310
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push esi
push eax
mov word [esi + 0x336], bx
call fcn.005403b3
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
mov esi, eax
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret