Function at 0x458130
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.0049d99f
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x45815b
mov dword [esi], 1
mov ecx, dword [esp + 0x74]
push 0x4d0bc8
push ecx
call fcn.0049e663
mov ebx, eax
add esp, 8
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4582d8
push 0x8000
push 0
push 0
push ebx
call fcn.0049e67a
add esp, 0x10
push 0
push 0x80
push ebx
call fcn.0049edbf
lea edx, [esp + 0x30]
add esp, 0xc
push edx
mov eax, ebx
mov dword [esp + 0x28], 0
call fcn.004552f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x458437
cmp dword [esp + 0x24], 0x64
ja 0x4583b6
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 0x458276
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x28], 0
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x4582fd
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.004552f0
add esp, 4
test eax, eax
jne 0x45824c
lea ecx, [esp + 0x40]
push ecx
mov eax, ebx
call fcn.004552f0
add esp, 4
test eax, eax
je 0x458256
mov edi, eax
test edi, edi
jne 0x458300
lea edi, [esp + 0x38]
lea esi, [esp + 0x30]
call fcn.0045d080
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x4581e1
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor ebp, ebp
xor eax, eax
shr ecx, 1
je 0x458294
mov edx, esi
cmp dword [edx], 0x76636774
je 0x458345
inc eax
add edx, 0xc
cmp eax, ecx
jb 0x458280
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp esi, ebp
je 0x4582aa
push 0x567098
call edi
call fcn.0045f5a0
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x4582cb
push esi
call edi
cmp eax, ebp
jne 0x4582cb
push esi
call fcn.0049d70f
add esp, 4
push ebx
call fcn.0049eebb
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
test esi, esi
je 0x4582f0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4582f0
push esi
call fcn.0049d70f
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 0x45831a
push 0x567098
call ebp
call fcn.0045f5a0
mov esi, dword [esp + 0x28]
test esi, esi
je 0x45833b
push esi
call ebp
test eax, eax
jne 0x45833b
push esi
call fcn.0049d70f
add esp, 4
push ebx
call fcn.0049eebb
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.0049edbf
mov edi, eax
add esp, 0xc
cmp edi, ebp
jne 0x458304
push ebx
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], ebp
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x4583cc
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 0x45840e
cmp esi, ebp
je 0x4583b6
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f5a0
lea esi, [esp + 0x28]
call fcn.00431360
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 0x4583e2
push 0x567098
call edi
call fcn.0045f5a0
mov esi, dword [esp + 0x28]
cmp esi, ebp
je 0x458403
push esi
call edi
cmp eax, ebp
jne 0x458403
push esi
call fcn.0049d70f
add esp, 4
push ebx
call fcn.0049eebb
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.004552f0
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x45844a
cmp esi, ebp
je 0x458437
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f5a0
lea esi, [esp + 0x28]
call fcn.00431360
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.004552f0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
mov eax, ebx
cmp dword [esp + 0x24], ebp
je 0x458762
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.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea eax, [esp + 0x50]
push eax
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea ecx, [esp + 0x54]
push ecx
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea edx, [esp + 0x58]
push edx
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea eax, [esp + 0x5c]
push eax
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea ecx, [esp + 0x60]
push ecx
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea edx, [esp + 0x64]
push edx
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea eax, [esp + 0x68]
push eax
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea ecx, [esp + 0x6c]
push ecx
mov eax, ebx
call fcn.00455340
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea eax, [esp + 0x4c]
call fcn.00457fc0
test al, al
je 0x4583a2
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
push ebp
push edi
mov eax, 0x600
mov dword [edx], 2
call fcn.0044a820
mov eax, edi
call fcn.0044a910
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 0x45860b
fadd dword [0x4d33b0]
fmul qword [0x4d3870]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fld dword [esp + 0x4c]
call fcn.004b23e0
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 0x458647
xorps xmm0, xmm0
jmp 0x45865d
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x45865d
movaps xmm0, xmm1
fld dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d36c8]
fld dword [esp + 0x58]
cvttsd2si ecx, xmm0
mov word [edi - 0x400], cx
call fcn.004b23e0
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 0x4586a5
xorps xmm0, xmm0
jmp 0x4586bb
movss xmm0, dword [esp + 0x24]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x4586bb
movaps xmm0, xmm1
fld dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d36c8]
fld dword [esp + 0x64]
cvttsd2si edx, xmm0
mov word [edi - 0x200], dx
call fcn.004b23e0
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 0x458703
xorps xmm0, xmm0
jmp 0x458719
movss xmm0, dword [esp + 0x7c]
movss xmm1, dword [0x4bb568]
comiss xmm0, xmm1
jbe 0x458719
movaps xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d36c8]
cvttsd2si eax, xmm0
mov word [edi], ax
inc ebx
add edi, 2
cmp ebx, 0x100
jb 0x4585f7
test esi, esi
je 0x45874f
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f5a0
lea esi, [esp + 0x28]
call fcn.00431360
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.004552b0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea edx, [esp + 0x18]
push edx
mov eax, ebx
call fcn.004552b0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.004552b0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x458423
cmp word [esp + 0x14], 3
jne 0x4583a2
mov ecx, 0x100
cmp word [esp + 0x18], cx
jne 0x4583a2
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.0044a820
mov eax, ebp
call fcn.0044a910
mov eax, dword [ebp + 4]
test eax, eax
je 0x458806
mov edi, dword [ebp]
push ebx
push edi
push 1
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, edi
je 0x458830
test esi, esi
je 0x45881a
push 0x567098
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call fcn.0045f5a0
lea esi, [esp + 0x28]
call fcn.00431360
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 0x45873b
cmp dword [ebp], 0
je 0x45873b
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 0x458850
jmp 0x45873b