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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
push 0
call fcn.004bfee0
add esp, 8
test eax, eax
je 0x4c017d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov edi, ecx
fld qword [esi]
fcom qword [ebx + 0x7c]
fst qword [esp + 0x10]
shr edi, 2
and edi, 1
fnstsw ax
mov dword [esp + 0x1c], edi
test ah, 1
je 0x4c01d5
test cl, 0x80
fstp st(0)
je 0x4c01c2
fld qword [esp + 0x10]
fchs
fld qword [0x550f30]
call fcn.00547caa
fsubr qword [0x550f30]
fstp qword [esp + 0x10]
jmp 0x4c0210
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x4c0210
fcomp qword [ebx + 0x84]
fnstsw ax
test ah, 0x41
jne 0x4c0210
test cl, 0x80
je 0x4c01fc
fld qword [esp + 0x10]
fld qword [0x550f30]
call fcn.00547caa
fstp qword [esp + 0x10]
jmp 0x4c0210
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
movsx eax, word [ebx + 4]
mov edx, dword [0x57e2ac]
lea ecx, [eax + 1]
push edx
mov edx, dword [0x57e298]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x57e29c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
movsx edx, word [ebx + 6]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x14]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.004bfa70
add esp, 0x24
cmp eax, 0xffffffff
mov dword [esp + 0x58], eax
jne 0x4c0265
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], 0
test ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
jle 0x4c0357
jmp 0x4c02bf
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x7c]
add ecx, eax
push ecx
push ebx
push edx
call fcn.004c0780
mov ecx, 0xc
mov esi, eax
mov eax, dword [esp + 0x24]
lea edi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x57e298]
add esp, 0xc
fld qword [ecx + eax*8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4c030a
fmul qword [esp + 0xc8]
fld st(0)
fadd qword [esp + 0x10]
fstp qword [esp + 0x10]
fld qword [esp + 0xb0]
fmul st(1)
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
fld qword [esp + 0xb8]
fmul st(1)
fadd qword [esp + 0x40]
fstp qword [esp + 0x40]
fld qword [esp + 0xc0]
fmul st(1)
fadd qword [esp + 0x48]
fstp qword [esp + 0x48]
fstp st(0)
jl 0x4c02bb
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4c0391
fld qword [esp + 0x10]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4c0391
fld qword [esp + 0x38]
fdiv qword [esp + 0x10]
lea eax, [esi + 8]
fstp qword [eax]
fld qword [esp + 0x40]
fdiv qword [esp + 0x10]
fstp qword [esi + 0x10]
fld qword [esp + 0x48]
fdiv qword [esp + 0x10]
fstp qword [esi + 0x18]
jmp 0x4c03a8
lea eax, [esi + 8]
mov ecx, 6
lea esi, [esp + 0x38]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, edx
and ecx, 0x10
mov dword [esp + 0xac], ecx
jne 0x4c03c7
push eax
push ebx
push eax
call fcn.004c0820
mov edx, dword [ebp + 0x10]
add esp, 0xc
test dl, 6
je 0x4c0769
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x18], 0
jle 0x4c0591
and edx, 4
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
add eax, edx
lea ecx, [esp + 0xe0]
push eax
push ebx
push ecx
call fcn.004c0780
mov edx, dword [0x57e29c]
mov ecx, 0xc
mov esi, eax
mov eax, dword [esp + 0x38]
lea edi, [esp + 0xbc]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
test eax, eax
fld qword [edx + ecx*8]
je 0x4c04c8
mov edx, dword [0x57e2ac]
fld qword [edx + ecx*8]
fstp qword [esp + 0x30]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4c04fc
fmul qword [esp + 0xc8]
test eax, eax
fld st(0)
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
je 0x4c04fc
fld qword [esp + 0x30]
fmul qword [esp + 0xc8]
fst qword [esp + 0x30]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fld st(0)
fmul qword [esp + 0xb0]
test eax, eax
fadd qword [esp + 0x64]
fstp qword [esp + 0x64]
fld st(0)
fmul qword [esp + 0xb8]
fadd qword [esp + 0x6c]
fstp qword [esp + 0x6c]
fmul qword [esp + 0xc0]
fadd qword [esp + 0x74]
fstp qword [esp + 0x74]
je 0x4c0576
fld qword [esp + 0x30]
fmul qword [esp + 0xb0]
fadd qword [esp + 0x7c]
fstp qword [esp + 0x7c]
fld qword [esp + 0x30]
fmul qword [esp + 0xb8]
fadd qword [esp + 0x84]
fstp qword [esp + 0x84]
fld qword [esp + 0x30]
fmul qword [esp + 0xc0]
fadd qword [esp + 0x8c]
fstp qword [esp + 0x8c]
mov eax, dword [esp + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x4c047a
mov edi, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4c069d
fld qword [esp + 0x10]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4c069d
fld qword [esp + 0x10]
fmul qword [esp + 0x10]
fld qword [esp + 0x64]
fmul qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [esp + 0x38]
and edx, 4
mov dword [esp + 0x2c], edx
fsubp st(1)
fst qword [esp + 0x30]
fdiv st(1)
fstp qword [esi + 0x20]
fld qword [esp + 0x6c]
fmul qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [esp + 0x40]
fsubp st(1)
fst qword [esp + 0x58]
fdiv st(1)
fstp qword [esi + 0x28]
fld qword [esp + 0x74]
fmul qword [esp + 0x10]
fld qword [esp + 0x20]
fmul qword [esp + 0x48]
fsubp st(1)
fld st(0)
fdiv st(2)
fstp qword [esi + 0x30]
je 0x4c0697
fld st(1)
fmul st(2)
fld qword [esp + 0x7c]
fmul qword [esp + 0x10]
fld qword [esp + 0x50]
fmul qword [esp + 0x38]
fsubp st(1)
fmul st(3)
fld qword [esp + 0x30]
fmul qword [esp + 0x20]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv st(1)
fstp qword [esi + 0x38]
fld qword [esp + 0x84]
fmul qword [esp + 0x10]
fld qword [esp + 0x50]
fmul qword [esp + 0x40]
fsubp st(1)
fmul st(3)
fld qword [esp + 0x58]
fmul qword [esp + 0x20]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(1)
fdiv st(1)
fstp qword [esi + 0x40]
fld qword [esp + 0x8c]
fmul qword [esp + 0x10]
fld qword [esp + 0x50]
fmul qword [esp + 0x48]
fsubp st(1)
fmul st(3)
fxch st(2)
fmul qword [esp + 0x20]
fmul qword [esp + 0x10]
fadd st(0), st(0)
fsubp st(2)
fxch st(1)
fdiv st(1)
fstp qword [esi + 0x48]
fstp st(0)
fstp st(0)
jmp 0x4c06c8
lea edi, [esi + 0x20]
mov ecx, 6
lea esi, [esp + 0x64]
and edx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], edx
je 0x4c06c5
mov eax, dword [ebp + 8]
mov ecx, 6
lea esi, [esp + 0x7c]
lea edi, [eax + 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x4c0769
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x7c]
push ecx
push ebx
push edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call fcn.004c0820
lea edi, [esi + 0x20]
push edi
push ebx
push edi
call fcn.004c0820
lea eax, [esp + 0x94]
push eax
push edi
call fcn.00418df0
mov eax, dword [esp + 0x4c]
add esp, 0x20
test eax, eax
je 0x4c0769
add esi, 0x38
push esi
push ebx
push esi
call fcn.004c0820
lea ecx, [esp + 0x88]
push ecx
push esi
call fcn.00418df0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret