Function at 0x4057c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push 0xffffffffffffffff
push 0x457e41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x46bad0]
push ebp
inc eax
push esi
mov dword [0x46bad0], eax
lea eax, [esp + 0x24]
push edi
xor esi, esi
mov ebp, ecx
push eax
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
fld dword [esp + 0x30]
fmul dword [0x46c670]
fdivr dword [0x45a378]
call fcn.0043d2c4
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub edi, eax
sbb ecx, edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x46c330]
cmp ecx, esi
je 0x40583d
mov edx, dword [ecx]
call dword [edx + 0x14]
push ebx
mov byte [ebp + 0x3d0], 5
mov byte [ebp + 0x3d1], 0
call fcn.0040a450
mov edi, eax
push esi
push esi
push 0x111
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x20], edi
call dword [eax + 0x18]
mov ecx, dword [0x46c31c]
push ecx
lea ecx, [ebp + 0x220]
call fcn.00408e20
mov edx, dword [edi]
push 0x7f
push esi
push 0x111
mov ecx, edi
call dword [edx + 0x18]
mov eax, dword [0x46c31c]
lea ecx, [ebp + 0x61fc]
lea eax, [eax + eax*8]
mov edx, dword [eax*8 + 0x45f71c]
push edx
call fcn.004296d0
movsx ebx, word [ebp + 0x226]
movsx esi, word [ebp + 0x224]
lea ecx, [ebp + 0x6218]
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov al, byte [0x46badf]
test al, al
jne 0x405a84
cmp dword [0x46c308], 2
jge 0x4058f0
mov edx, dword [0x46c314]
push ebx
push esi
push 0x4602b0
push edx
jmp 0x405901
mov ecx, dword [0x46c314]
lea eax, [ebx + 0x28]
push eax
push esi
push 0x4602b0
push ecx
push 0
mov ecx, ebp
call fcn.00405710
mov edx, dword [ebp + 0x2c0]
lea edi, [ebp + 0x2c0]
mov byte [ebp + 0x3c0], 0
mov dword [ebp + 0x3c4], edx
mov eax, dword [0x46c31c]
add esi, 0x1e
push ebx
push esi
lea eax, [eax + eax*8]
mov ecx, dword [eax*8 + 0x45f710]
push ecx
push 1
mov ecx, ebp
call fcn.004056c0
mov edx, eax
mov eax, dword [0x46c31c]
lea eax, [eax + eax*8]
movsx ecx, byte [eax*8 + 0x45f707]
add edx, ecx
mov ecx, ebp
push edx
push 1
call fcn.00405710
mov eax, dword [0x46c31c]
add ebx, 0x28
push ebx
push esi
lea edx, [eax + eax*8]
mov ecx, ebp
mov eax, dword [edx*8 + 0x45f714]
push eax
push 2
call fcn.004056c0
mov ecx, eax
mov eax, dword [0x46c31c]
lea edx, [eax + eax*8]
movsx eax, byte [edx*8 + 0x45f708]
add ecx, eax
push ecx
push 2
mov ecx, ebp
call fcn.00405710
cmp dword [0x46c308], 2
jge 0x4059da
mov eax, dword [0x46c31c]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
lea edx, [eax + eax*8]
mov ecx, ebp
mov eax, dword [edx*8 + 0x45f718]
push eax
push 3
call fcn.004056c0
mov ecx, eax
mov eax, dword [0x46c31c]
lea edx, [eax + eax*8]
movsx eax, byte [edx*8 + 0x45f709]
add ecx, eax
push ecx
jmp 0x405a12
mov eax, dword [0x46c31c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [eax + eax*8]
push edx
mov ecx, dword [eax*8 + 0x45f718]
push ecx
push 3
mov ecx, ebp
call fcn.004056c0
mov edx, eax
mov eax, dword [0x46c31c]
lea eax, [eax + eax*8]
movsx ecx, byte [eax*8 + 0x45f709]
add edx, ecx
push edx
push 3
mov ecx, ebp
call fcn.00405710
mov esi, edi
mov edi, 4
cmp dword [esi], 0
je 0x405a75
push 0xfc
call fcn.0043d2eb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x405a65
mov edx, dword [esi]
mov ebx, dword [ebp + 0x3c4]
xor ecx, ecx
cmp edx, ebx
sete cl
push ecx
lea ecx, [ebp + 0x61fc]
push ecx
push edx
mov ecx, eax
call fcn.0042ad00
jmp 0x405a67
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x5f58], eax
add esi, 4
dec edi
jne 0x405a22
mov edi, dword [esp + 0x14]
jmp 0x405bd5
mov eax, 0x10c
mov dword [esp + 0x1c], eax
mov esi, dword [eax + 0x46d0f8]
test byte [esi + 4], 2
je 0x405bbf
mov ebx, dword [esi]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
lea ecx, [eax + edx*8]
mov eax, ebx
and eax, 0x80000001
push ecx
jns 0x405abf
dec eax
or eax, 0xfffffffe
inc eax
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*2]
xor eax, eax
mov al, byte [esi + 0x18]
lea edx, [esi + 8]
push ecx
push edx
push eax
push ebx
mov ecx, ebp
call fcn.00405710
mov ecx, esi
call fcn.00428770
test eax, eax
je 0x405b00
movsx ecx, bl
mov byte [ebp + 0x3c0], bl
mov edx, dword [ebp + ecx*4 + 0x2c0]
mov dword [ebp + 0x3c4], edx
mov eax, dword [ebp + ebx*4 + 0x2c0]
push 0xfc
mov dword [eax + 0x100], esi
mov eax, dword [0x46eae4]
test eax, eax
je 0x405b7c
call fcn.0043d2eb
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov dword [esp + 0x58], 1
je 0x405b65
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x405b47
mov ecx, esi
call fcn.00428770
test eax, eax
je 0x405b4c
mov eax, 1
mov ecx, dword [ebp + ebx*4 + 0x2c0]
push eax
lea eax, [ebp + 0x61fc]
push eax
push ecx
mov ecx, edi
call fcn.0042ad00
jmp 0x405b67
xor eax, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
mov dword [ebp + ebx*4 + 0x6218], eax
jmp 0x405bbf
call fcn.0043d2eb
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 2
je 0x405bae
mov edx, dword [ebp + ebx*4 + 0x2c0]
lea ecx, [ebp + 0x61fc]
push 1
push ecx
push edx
mov ecx, eax
call fcn.0042ad00
jmp 0x405bb0
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [ebp + ebx*4 + 0x6218], eax
mov eax, dword [esp + 0x1c]
add eax, 4
cmp eax, 0x124
mov dword [esp + 0x1c], eax
jl 0x405a8d
mov eax, dword [edi]
push 0xcc
push 0
push 0x111
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [0x46ba88]
mov ecx, 5
mov esi, 0x45f638
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + eax*2]
mov bl, byte [esp + 0x4a]
push 1
lea edx, [eax + ecx*4]
shl edx, 4
add edx, eax
shl edx, 8
sub edx, eax
lea eax, [eax + edx*4 + 0x269ec3]
mov dword [0x46ba88], eax
sar eax, 0x10
and eax, 0x7fff
shl eax, 1
mov ecx, eax
mov eax, 0x80010003
imul ecx
add edx, ecx
lea ecx, [esp + 0x40]
sar edx, 0xe
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
add bl, dl
mov byte [esp + 0x52], bl
call fcn.00422010
mov edx, dword [ebp + 0x1d0]
mov dword [ebp + 0x61f8], eax
mov eax, 0xbb8
mov dword [ebp + 0x3d4], edx
mov dword [ebp + 0x3d8], eax
mov ecx, dword [ebp + 0x1d0]
mov dword [ebp + 0x3dc], ecx
add esp, 8
mov ecx, ebp
mov dword [ebp + 0x3e0], eax
call fcn.004070d0
mov ecx, ebp
call fcn.00405fb0
mov ecx, ebp
call fcn.00405e80
mov al, byte [0x46badf]
test al, al
je 0x405ca3
call fcn.00429270
mov eax, 8
mov edx, dword [0x46ba90]
add eax, 4
cmp eax, 0x18
mov ecx, dword [eax + edx - 4]
mov dword [ecx + 0x194], 0
mov edx, dword [0x46ba90]
mov ecx, dword [eax + edx - 4]
mov byte [ecx + 0x108], 0
jl 0x405ca8
mov esi, dword [esp + 0x14]
push 0xfe
push 0
push 0x111
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
test esi, esi
je 0x405cf8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x405d12
jl 0x405d0a
mov eax, dword [esp + 0x2c]
test eax, eax
jae 0x405d12
fld dword [0x45a378]
jmp 0x405d53
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov edx, eax
mov esi, ecx
sub edx, ebx
mov dword [esp + 0x2c], eax
sbb esi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], ecx
fild qword [esp + 0x1c]
fmul dword [0x46c670]
fmul dword [esp + 0x34]
call fcn.0043d2c4
cmp eax, 0x6d6
pop ebx
jge 0x405d6e
mov ecx, 0x6d6
sub ecx, eax
push ecx
call dword [sym.imp.kernel32.dll_Sleep]
mov ebp, dword [ebp + 0x61f8]
push 1
mov ecx, ebp
mov edx, dword [ebp]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret