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

Disassembly:
sub esp, 0xa4
push ebp
mov ebp, dword [0x101eab30]
push edi
mov edi, eax
test byte [edi + 8], 0x42
jne 0x100502cc
cmp dword [edi + 0x90], 0
jg 0x100502cc
cmp dword [edi + 0x94], 0
jg 0x100502cc
cmp byte [edi + 0x7b], 0
je 0x100502cc
fld dword [edi + 0x44]
push ebx
fadd qword [0x101a6320]
mov bl, byte [ebp + 0xbf]
fld dword [ebp + 0x18b4]
mov al, bl
fmul qword [0x101a7bb0]
neg al
push esi
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
sbb eax, eax
sub esp, 8
fstp dword [esp + 4]
and eax, 4
fld dword [ebp + 0x18b4]
mov dword [esp + 0x2c], eax
fmul qword [0x101a80f8]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.10045300
add esp, 8
call fcn.10119fe0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [0x101a7ba0]
call fcn.10119fe0
test bl, bl
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x48]
je 0x1004fbd8
fld dword [0x101a631c]
jmp 0x1004fbda
fldz
fstp dword [esp + 0x30]
push 0x101a80f0
fld dword [0x101a7b78]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
call fcn.1004d050
xor ebx, ebx
add esp, 4
cmp dword [esp + 0xc0], ebx
mov dword [esp + 0x1c], ebx
jle 0x1004ff10
fld dword [esp + 0x30]
lea esi, [ebx + ebx*2]
fld dword [edi + 0x14]
lea esi, [esi*8 + 0x101dcc00]
fadd dword [edi + 0xc]
fstp dword [esp + 0x8c]
fld dword [edi + 0x10]
fadd dword [edi + 0x18]
fstp dword [esp + 0x90]
fld dword [esp + 0x8c]
fsub dword [edi + 0xc]
fmul dword [esi]
fadd dword [edi + 0xc]
fstp dword [esp + 0x84]
fld dword [esp + 0x90]
fsub dword [edi + 0x10]
fmul dword [esi + 4]
fadd dword [edi + 0x10]
fstp dword [esp + 0x88]
fld dword [esi + 8]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x94]
fmul dword [esi + 0xc]
fstp dword [esp + 0x98]
fld dword [esp + 0x94]
fld dword [esp + 0x84]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x74]
mov eax, dword [esp + 0x74]
fld dword [esp + 0x98]
mov dword [esp + 0x64], eax
fld dword [esp + 0x88]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x78]
fld dword [esi + 8]
fmul st(3)
fstp dword [esp + 0x9c]
fld dword [esi + 0xc]
fmulp st(3)
fxch st(2)
fstp dword [esp + 0xa0]
fsub dword [esp + 0x9c]
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x5c], ecx
fsub dword [esp + 0xa0]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x80]
fld dword [esp + 0x7c]
mov dword [esp + 0x60], edx
fld dword [esp + 0x74]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004fd28
fstp dword [esp + 0x5c]
fstp dword [esp + 0x64]
jmp 0x1004fd2c
fstp st(1)
fstp st(0)
fld dword [esp + 0x60]
fld dword [esp + 0x68]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004fd51
fxch st(1)
fstp dword [esp + 0x14]
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fstp dword [esp + 0x68]
jmp 0x1004fd55
fstp st(1)
fstp st(0)
push 0x2020
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x1b]
push eax
push ebx
mov ecx, edi
call fcn.100465b0
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.100583b0
mov al, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
jne 0x1004fd8d
test al, al
je 0x1004fec1
mov edx, ebx
and dl, 1
neg dl
sbb edx, edx
add edx, 6
test al, al
mov dword [ebp + 0x1c50], edx
je 0x1004fec1
cmp byte [ebp + 0x3e5], 0
je 0x1004fdfa
test ebx, ebx
jne 0x1004fdfa
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xac]
push eax
call fcn.10047660
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.10040ba0
mov al, byte [esp + 0x12]
test al, al
je 0x1004fed7
mov eax, 0x20
jmp 0x1004fee3
fld dword [esp + 0x48]
lea eax, [esp + 0x38]
fchs
push eax
fstp dword [esp + 0x18]
lea ebx, [esp + 0x70]
fld dword [esi + 8]
lea eax, [esp + 0xb0]
fld dword [esp + 0x18]
mov ecx, edi
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x44]
fmul dword [esi + 0xc]
fstp dword [esp + 0x48]
fld dword [esi + 8]
fld dword [esp + 0x34]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x50]
fmul dword [esi + 0xc]
fstp dword [esp + 0x54]
fld dword [esp + 0x44]
fld dword [esp + 0x50]
fld st(0)
fsubp st(2)
fld dword [esi]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x48]
fld dword [esp + 0x54]
fld st(0)
fsubp st(2)
fld dword [esi + 4]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [ebp + 0xf0]
fsub dword [ebp + 0x19d0]
fstp dword [esp + 0x58]
fld dword [ebp + 0xf4]
fsub dword [ebp + 0x19d4]
fstp dword [esp + 0x5c]
fld dword [esp + 0x58]
fadd dword [esp + 0x2c]
fstp dword [esp + 0xb0]
fld dword [esp + 0x5c]
fadd dword [esp + 0x30]
fstp dword [esp + 0xb4]
call fcn.10047cd0
mov al, byte [esp + 0x16]
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x1004fde8
test al, al
jne 0x1004fdf0
cmp byte [esp + 0x13], al
je 0x1004fefc
xor eax, eax
cmp byte [esp + 0x13], al
setne al
add eax, 0x1e
fld1
push ecx
fstp dword [esp]
push eax
call fcn.10040190
mov ecx, dword [esp + 0xcc]
add esp, 8
mov dword [ecx + ebx*4], eax
add ebx, 1
cmp ebx, dword [esp + 0xc0]
mov dword [esp + 0x1c], ebx
jl 0x1004fc14
xor esi, esi
cmp dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jle 0x100500a8
fld dword [0x101a631c]
sub esp, 8
fstp dword [esp + 4]
mov edx, esi
fld dword [esp + 0x50]
mov eax, edi
lea ecx, [esp + 0x64]
fstp dword [esp]
call fcn.10041c30
add esp, 8
push 0x20
lea edx, [esp + 0x16]
push edx
lea eax, [esp + 0x1b]
push eax
lea ecx, [esi + 4]
push ecx
mov ecx, edi
call fcn.100465b0
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.100583b0
mov cl, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
je 0x1004ff87
fld dword [0x101a7a6c]
fcomp dword [ebp + 0x19ac]
fnstsw ax
test ah, 5
jnp 0x1004ff8f
test cl, cl
je 0x10050097
mov eax, esi
and al, 1
neg al
sbb eax, eax
neg eax
add eax, 3
test cl, cl
mov dword [ebp + 0x1c50], eax
je 0x10050097
test esi, esi
fldz
mov ecx, dword [esp + 0xbc]
fst dword [esp + 0x18]
mov dword [ecx], esi
fst dword [esp + 0x14]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
jne 0x1004ffff
fst dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fld dword [ebp + 0xf4]
fsub dword [ebp + 0x19d4]
fadd qword [0x101a60f8]
fstp dword [esp + 0x34]
jmp 0x10050078
cmp esi, 1
jne 0x10050036
fld1
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
fld dword [ebp + 0xf0]
fsub dword [ebp + 0x19d0]
fadd qword [0x101a60f8]
fstp dword [esp + 0x30]
jmp 0x10050078
cmp esi, 2
jne 0x10050057
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
fld1
mov dword [esp + 0x14], edx
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
jmp 0x1004ffe7
cmp esi, 3
jne 0x10050076
fst dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x1005001e
fstp st(0)
lea eax, [esp + 0x38]
push eax
lea ebx, [esp + 0x70]
lea esi, [esp + 0x18]
lea eax, [esp + 0x34]
mov ecx, edi
call fcn.10047cd0
mov esi, dword [esp + 0x20]
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jl 0x1004ff20
call fcn.10048580
mov eax, dword [ebp + 0x1adc]
test eax, eax
je 0x10050170
cmp dword [eax + 0x2f0], edi
jne 0x10050170
fldz
mov esi, dword [ebp + 0x1ac4]
cmp esi, 3
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
jne 0x10050112
cmp byte [ebp + 0x109], 0
je 0x10050112
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 1
push ecx
call fcn.10043450
fldz
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp esi, 4
jne 0x10050144
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 2
push ecx
call fcn.10043450
fldz
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
fld st(0)
fld dword [esp + 0x1c]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
fld dword [esp + 0x20]
jp 0x100501f1
fucom st(2)
fnstsw ax
fstp st(2)
test ah, 0x44
jp 0x100501f3
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x38]
pop esi
fcomp qword [0x101a7f80]
pop ebx
fnstsw ax
test ah, 0x44
jnp 0x1005019a
mov eax, dword [esp + 0x30]
push edi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
call fcn.10043bd0
add esp, 4
fld dword [esp + 0x64]
fcom qword [0x101a7f80]
fnstsw ax
test ah, 0x44
jnp 0x100502be
call fcn.10119fe0
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
call fcn.10119fe0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push edi
mov dword [edi + 0xc], ecx
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x10], edx
call fcn.10043bd0
add esp, 4
jmp 0x100502c0
fstp st(2)
fld dword [ebp + 0xa4]
fstp dword [esp + 0x14]
fld dword [ebp + 0xa8]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x1005021c
fstp st(0)
jmp 0x1005021e
fstp st(1)
fstp dword [esp + 0x24]
fld dword [ebp + 0x18]
fmul qword [0x101a80e8]
fmul dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.10119fe0
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push ecx
mov byte [ebp + 0x1af0], 0
fstp dword [esp + 0x18]
mov byte [ebp + 0x1aff], 1
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x20]
fmulp st(1)
fstp dword [esp + 0x24]
fld1
fstp dword [esp]
push 0x20
call fcn.10040190
mov ecx, dword [esp + 0xcc]
mov dword [ecx], eax
fld dword [edi + 0x1c]
fadd dword [esp + 0x24]
lea ecx, [esp + 0xac]
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fld dword [edi + 0x20]
fadd dword [esp + 0x28]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
push edx
push eax
push ecx
call fcn.10047660
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x38], edx
jmp 0x10050174
fstp st(0)
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
pop edi
pop ebp
add esp, 0xa4
ret