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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x68
push edi
mov edi, ecx
test eax, eax
je 0x5749cb
push ebx
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x5749ca
cmp dword [eax + 0x40], 0
je 0x5749ca
cmp byte [edi + 0x44], 0
je 0x574669
mov byte [esp + 8], 0
jmp 0x574673
mov al, byte [edi + 0x378]
mov byte [esp + 8], al
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push ebp
mov ebp, dword [eax]
mov eax, dword [edx + 0x48]
push esi
mov dword [esp + 0x20], ebp
call eax
cmp dword [edi + 0x2f4], 0
mov esi, dword [esp + 0x7c]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov byte [esp + 0x88], al
mov eax, dword [esi + 0x38]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
je 0x574708
movzx edx, byte [edi + 0x2f7]
mov eax, dword [edi + 0x2f4]
movzx ecx, byte [edi + 0x2f5]
push edx
movzx edx, byte [edi + 0x2f6]
and eax, 0xff
push eax
push ecx
push edx
lea ecx, [esp + 0x68]
call fcn.0052b500
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x3c], edx
mov byte [esi + 0x48], 1
fld1
fcomp dword [edi + 0x70]
fnstsw ax
test ah, 0x44
jnp 0x57478a
cmp byte [esi + 0x48], 0
je 0x574753
mov ecx, esi
call fcn.004909a0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fmul dword [edi + 0x70]
call fcn.005a0400
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
jmp 0x574783
mov byte [esi + 0x48], 1
fld dword [edi + 0x70]
fmul qword [0x5d5250]
call fcn.005a0400
push eax
push 0xff
push 0xff
push 0xff
lea ecx, [esp + 0x68]
call fcn.0052b500
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00490980
mov edx, dword [esp + 0x84]
mov ecx, dword [edx + 0x40]
call fcn.004a1280
cmp dword [edi + 0x2f8], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x14], 0
jle 0x5749a8
jmp 0x5747b8
mov ebp, dword [esp + 0x20]
cmp byte [esp + 0x10], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x54], eax
je 0x5747f9
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x84]
sub ecx, edx
sub ecx, dword [ebx + 0x10]
jmp 0x5747fc
mov ecx, dword [ebx + 0x10]
fld dword [edi + 0x6c]
add ecx, ebp
fsub qword [0x5d4fc8]
mov ebp, dword [ebx + 0x14]
add ebp, dword [esp + 0x24]
fabs
fcomp qword [0x5db2a0]
fnstsw ax
test ah, 5
jp 0x574836
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
jmp 0x5748b3
mov edx, dword [edi + 0x80]
mov eax, dword [edi + 0x74]
add eax, edx
mov edx, eax
neg edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x18], eax
fmul dword [edi + 0x6c]
fiadd dword [esp + 0x18]
call fcn.005a0400
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x84]
add eax, ecx
mov edx, eax
neg edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
add eax, ebp
mov dword [esp + 0x18], eax
fmul dword [edi + 0x6c]
fiadd dword [esp + 0x18]
call fcn.005a0400
fild dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
fmul dword [edi + 0x6c]
call fcn.005a0400
fild dword [esp + 0x80]
mov dword [esp + 0x30], eax
fmul dword [edi + 0x6c]
call fcn.005a0400
mov dword [esp + 0x34], eax
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.004a0fc0
cmp byte [esp + 0x88], 0
je 0x57497f
push 1
mov ecx, esi
call fcn.004909b0
mov ecx, esi
call fcn.004909a0
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x64], edx
fild dword [esp + 0x64]
fmul qword [0x5d4fe0]
fld qword [0x5d5250]
fdiv st(1), st(0)
fmulp st(1)
call fcn.005a0400
push eax
push 0xff
push 0xff
push 0xff
lea ecx, [esp + 0x78]
call fcn.0052b500
push eax
mov ecx, esi
call fcn.00490980
push 1
mov ecx, esi
call fcn.004909d0
mov edx, dword [esp + 0x7c]
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.004a0fc0
push 0
mov ecx, esi
call fcn.004909b0
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.00490980
push 0
mov ecx, esi
call fcn.004909d0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x2fc]
mov edx, dword [edi + 0x300]
add dword [esp + 0x20], ecx
add dword [esp + 0x24], edx
inc eax
cmp eax, dword [edi + 0x2f8]
mov dword [esp + 0x14], eax
jl 0x5747b4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov byte [esi + 0x48], 0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x68
ret 0x10