Function at 0x4057d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x770388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x64]
cmp esi, ebx
mov dword [esp + 0xc], ecx
jne 0x40580f
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
fld dword [esi + 0x24]
lea eax, [esp + 0x20]
fstp dword [esp + 0x20]
push edi
fld dword [esi + 0x28]
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 0x2c]
fstp dword [esp + 0x30]
fld dword [ebx + 0x24]
fstp dword [esp + 0x34]
fld dword [ebx + 0x28]
fstp dword [esp + 0x38]
fld dword [ebx + 0x2c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
fstp dword [esp + 0x6c]
fld dword [esp + 0x38]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x70]
fld dword [esp + 0x3c]
fsub dword [esp + 0x30]
fstp dword [esp + 0x10]
fld dword [esp + 0x6c]
fstp dword [esp + 0x28]
fld dword [esp + 0x70]
fstp dword [esp + 0x2c]
fld dword [esp + 0x10]
fstp dword [esp + 0x30]
call dword [0x97e20c]
fld dword [esp + 0x30]
lea ecx, [esp + 0x34]
fldz
push ecx
fmul st(1), st(0)
fld dword [esp + 0x30]
fld st(0)
fsub st(3)
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fld st(0)
fsubp st(4)
fxch st(3)
fstp dword [esp + 0x3c]
fxch st(2)
fmul st(1)
fxch st(2)
fmulp st(1)
fsubp st(1)
fstp dword [esp + 0x40]
call dword [0x97e20c]
fld dword [esp + 0x38]
fld st(0)
fld dword [esp + 0x78]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x3c]
fld st(0)
fmul st(2)
fstp dword [esp + 0x74]
fld dword [esp + 0x40]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x78]
fld dword [esi + 0x24]
fstp dword [esp + 0x44]
fld dword [esi + 0x28]
fstp dword [esp + 0x48]
fld dword [esi + 0x2c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x44]
fadd dword [esp + 0x70]
fstp dword [esp + 0x14]
fld dword [esp + 0x48]
fadd dword [esp + 0x74]
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fadd dword [esp + 0x78]
lea edx, [esp + 0x50]
push edx
fstp dword [esp + 0x78]
fxch st(2)
fstp dword [esp + 0x54]
fxch st(1)
fstp dword [esp + 0x58]
fstp dword [esp + 0x5c]
call dword [0x97e20c]
mov edi, dword [esi]
fld dword [esp + 0x58]
mov eax, 0x2d4279a3
fmul dword [esp + 0x74]
imul edi
fld dword [esp + 0x54]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x5c]
fmul dword [esp + 0x78]
mov ebx, dword [ebx]
sar edx, 6
faddp st(1)
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
fchs
mov eax, ecx
fstp dword [esp + 0x60]
imul eax, eax, 0x16a
sub edi, eax
mov eax, 0x2d4279a3
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
imul edx, edx, 0x16a
sub ebx, edx
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x68], edi
jl 0x4059af
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
jg 0x4059b3
mov dword [esp + 0x6c], ebx
cmp ecx, eax
mov dword [esp + 0x70], ecx
jl 0x4059c5
mov dword [esp + 0x70], eax
mov dword [esp + 0xc], ecx
jg 0x4059c9
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
add dword [eax + 0x18], 1
mov eax, dword [eax + 0x18]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
push 4
mov dword [esi + 0x30], eax
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x2c], 1
call fcn.0040e110
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [ecx + eax*4 - 4], esi
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ebx
jne 0x405a49
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x64], 0xffffffff
call fcn.0067abe0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
xor ebx, ebx
cmp eax, 1
jb 0x405a58
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax*4 - 4]
jmp 0x405a5c
mov ecx, dword [esp + 0x20]
cmp eax, 1
mov edi, dword [ecx]
jbe 0x405a6c
sub eax, 1
mov dword [esp + 0x18], eax
jmp 0x405a70
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00404e50
mov ebx, eax
test ebx, ebx
je 0x405b2b
xor esi, esi
jmp 0x405a90
mov ecx, dword [edi]
mov eax, 0x2d4279a3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
imul edx, edx, 0x16a
sub ecx, edx
test esi, esi
jne 0x405ab6
sub ecx, 1
jmp 0x405ad1
cmp esi, 1
jne 0x405abf
add eax, esi
jmp 0x405ad1
cmp esi, 2
jne 0x405ac9
add ecx, 1
jmp 0x405ad1
cmp esi, 3
jne 0x405ad1
sub eax, 1
cmp ecx, dword [esp + 0x68]
jl 0x405b1f
cmp ecx, dword [esp + 0x6c]
jg 0x405b1f
cmp eax, dword [esp + 0x70]
jl 0x405b1f
cmp eax, dword [esp + 0xc]
jg 0x405b1f
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x405b1f
mov eax, dword [edi + esi*4 + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
je 0x405b3c
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x18]
cmp dword [eax + 0x30], ecx
je 0x405b1f
lea edx, [esp + 0x14]
mov dword [eax + 0x30], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041e8d0
add esi, 1
cmp esi, 4
jl 0x405a90
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405a47
jmp 0x405a1c
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x64], 0xffffffff
call fcn.0067abe0
mov ecx, dword [esp + 0x5c]
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc