Function at 0x457d90
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
push edi
push 4
mov dword [eax], 0
call fcn.0049d50f
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x457dbb
mov dword [esi], 1
mov ecx, dword [esp + 0x74]
push 0x4d0bb8
push ecx
call fcn.0049e1d3
mov ebx, eax
add esp, 8
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x457f38
push 0x8000
push 0
push 0
push ebx
call fcn.0049e1ea
add esp, 0x10
push 0
push 0x80
push ebx
call fcn.0049e92f
lea edx, [esp + 0x30]
add esp, 0xc
push edx
mov eax, ebx
mov dword [esp + 0x28], 0
call fcn.00454fe0
mov edi, eax
add esp, 4
test edi, edi
jne 0x458097
cmp dword [esp + 0x24], 0x64
ja 0x458016
xor ecx, ecx
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x24], ecx
jbe 0x457ed6
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], 0
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x457f5d
mov eax, dword [esp + 0x18]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
lea eax, [esp + 0x3c]
push eax
mov eax, ebx
mov dword [esp + 0x3c], ecx
call fcn.00454fe0
add esp, 4
test eax, eax
jne 0x457eac
lea ecx, [esp + 0x40]
push ecx
mov eax, ebx
call fcn.00454fe0
add esp, 4
test eax, eax
je 0x457eb6
mov edi, eax
test edi, edi
jne 0x457f60
lea edi, [esp + 0x38]
lea esi, [esp + 0x30]
call fcn.0045cc00
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x457e41
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor ebp, ebp
xor eax, eax
shr ecx, 1
je 0x457ef4
mov edx, esi
cmp dword [edx], 0x76636774
je 0x457fa5
inc eax
add edx, 0xc
cmp eax, ecx
jb 0x457ee0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp esi, ebp
je 0x457f0a
push 0x566aa8
call edi
call fcn.0045f130
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x457f2b
push esi
call edi
cmp eax, ebp
jne 0x457f2b
push esi
call fcn.0049d27f
add esp, 4
push ebx
call fcn.0049ea2b
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
test esi, esi
je 0x457f50
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x457f50
push esi
call fcn.0049d27f
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
or edi, 0xffffffff
mov esi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test esi, esi
je 0x457f7a
push 0x566aa8
call ebp
call fcn.0045f130
mov esi, dword [esp + 0x28]
test esi, esi
je 0x457f9b
push esi
call ebp
test eax, eax
jne 0x457f9b
push esi
call fcn.0049d27f
add esp, 4
push ebx
call fcn.0049ea2b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea edx, [eax + eax*2]
mov eax, dword [esi + edx*4 + 4]
push ebp
push eax
push ebx
call fcn.0049e92f
mov edi, eax
add esp, 0xc
cmp edi, ebp
jne 0x457f64
push ebx
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], ebp
call fcn.0049e588
add esp, 0x10
cmp eax, 1
jne 0x45802c
mov eax, dword [esp + 0x24]
rol eax, 0x10
mov ecx, eax
shr ecx, 8
mov edx, eax
shl edx, 8
xor ecx, edx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 0x76636774
je 0x45806e
cmp esi, ebp
je 0x458016
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f130
lea esi, [esp + 0x28]
call fcn.004310d0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp esi, ebp
je 0x458042
push 0x566aa8
call edi
call fcn.0045f130
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x458063
push esi
call edi
cmp eax, ebp
jne 0x458063
push esi
call fcn.0049d27f
add esp, 4
push ebx
call fcn.0049ea2b
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.00454fe0
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4580aa
cmp esi, ebp
je 0x458097
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f130
lea esi, [esp + 0x28]
call fcn.004310d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea ecx, [esp + 0x24]
push ecx
mov eax, ebx
call fcn.00454fe0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
mov eax, ebx
cmp dword [esp + 0x24], ebp
je 0x4583c2
pxor xmm0, xmm0
lea edx, [esp + 0x4c]
push edx
movq qword [esp + 0x50], xmm0
movq qword [esp + 0x58], xmm0
movq qword [esp + 0x60], xmm0
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x70], ebp
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea eax, [esp + 0x50]
push eax
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea ecx, [esp + 0x54]
push ecx
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea edx, [esp + 0x58]
push edx
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea eax, [esp + 0x5c]
push eax
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea ecx, [esp + 0x60]
push ecx
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea edx, [esp + 0x64]
push edx
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea eax, [esp + 0x68]
push eax
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea ecx, [esp + 0x6c]
push ecx
mov eax, ebx
call fcn.00455030
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea eax, [esp + 0x4c]
call fcn.00457c10
test al, al
je 0x458002
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
push ebp
push edi
mov eax, 0x600
mov dword [edx], 2
call fcn.0044a500
mov eax, edi
call fcn.0044a5f0
movss xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x50]
mov eax, dword [edi + 4]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
movss xmm1, dword [esp + 0x5c]
movsd qword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x60]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
movss xmm1, dword [esp + 0x68]
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x6c]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
subsd xmm0, xmm1
xor ebx, ebx
movsd qword [esp + 0x38], xmm0
lea edi, [eax + 0x400]
mov eax, ebx
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
test eax, eax
jge 0x45826b
fadd dword [0x4d3380]
fmul qword [0x4d3840]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld dword [esp + 0x4c]
call fcn.004b1f50
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [esp + 0x30]
fadd dword [esp + 0x50]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fldz
fcompi st(1)
fstp st(0)
jbe 0x4582a7
xorps xmm0, xmm0
jmp 0x4582bd
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x4582bd
movaps xmm0, xmm1
fld dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d3698]
fld dword [esp + 0x58]
cvttsd2si ecx, xmm0
mov word [edi - 0x400], cx
call fcn.004b1f50
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [esp + 0x18]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fldz
fcompi st(1)
fstp st(0)
jbe 0x458305
xorps xmm0, xmm0
jmp 0x45831b
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x45831b
movaps xmm0, xmm1
fld dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d3698]
fld dword [esp + 0x64]
cvttsd2si edx, xmm0
mov word [edi - 0x200], dx
call fcn.004b1f50
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fmul qword [esp + 0x38]
fadd dword [esp + 0x68]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fldz
fcompi st(1)
fstp st(0)
jbe 0x458363
xorps xmm0, xmm0
jmp 0x458379
movss xmm0, dword [esp + 0x7c]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x458379
movaps xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d3698]
cvttsd2si eax, xmm0
mov word [edi], ax
inc ebx
add edi, 2
cmp ebx, 0x100
jb 0x458257
test esi, esi
je 0x4583af
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f130
lea esi, [esp + 0x28]
call fcn.004310d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00454fa0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea edx, [esp + 0x18]
push edx
mov eax, ebx
call fcn.00454fa0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.00454fa0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458083
cmp word [esp + 0x14], 3
jne 0x458002
mov ecx, 0x100
cmp word [esp + 0x18], cx
jne 0x458002
movzx eax, word [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [edx], eax
push 0
lea eax, [eax + eax*2]
shl eax, 8
push ebp
call fcn.0044a500
mov eax, ebp
call fcn.0044a5f0
mov eax, dword [ebp + 4]
test eax, eax
je 0x458466
mov edi, dword [ebp]
push ebx
push edi
push 1
push eax
call fcn.0049e588
add esp, 0x10
cmp eax, edi
je 0x458490
test esi, esi
je 0x45847a
push 0x566aa8
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f130
lea esi, [esp + 0x28]
call fcn.004310d0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x7c]
cmp dword [eax], 2
jne 0x45839b
cmp dword [ebp], 0
je 0x45839b
mov ecx, dword [ebp + 4]
xor eax, eax
lea esp, [esp]
mov dx, word [ecx + eax*2]
rol dx, 8
mov word [ecx + eax*2], dx
inc eax
cmp eax, 0x300
jb 0x4584b0
jmp 0x45839b