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

Disassembly:
sub esp, 0xa4
push ebp
mov ebp, dword [0x101eaae8]
push edi
mov edi, eax
test byte [edi + 8], 0x42
jne 0x1004fb0c
cmp dword [edi + 0x90], 0
jg 0x1004fb0c
cmp dword [edi + 0x94], 0
jg 0x1004fb0c
cmp byte [edi + 0x7b], 0
je 0x1004fb0c
fld dword [edi + 0x44]
push ebx
fadd qword [0x101a6130]
mov bl, byte [ebp + 0xbf]
fld dword [ebp + 0x18b4]
mov al, bl
fmul qword [0x101a7a10]
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 [0x101a7f58]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.10044b40
add esp, 8
call fcn.10119820
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [0x101a7a00]
call fcn.10119820
test bl, bl
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x48]
je 0x1004f418
fld dword [0x101a612c]
jmp 0x1004f41a
fldz
fstp dword [esp + 0x30]
push 0x101a7f50
fld dword [0x101a79d8]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
call fcn.1004c890
xor ebx, ebx
add esp, 4
cmp dword [esp + 0xc0], ebx
mov dword [esp + 0x1c], ebx
jle 0x1004f750
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 0x1004f568
fstp dword [esp + 0x5c]
fstp dword [esp + 0x64]
jmp 0x1004f56c
fstp st(1)
fstp st(0)
fld dword [esp + 0x60]
fld dword [esp + 0x68]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004f591
fxch st(1)
fstp dword [esp + 0x14]
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fstp dword [esp + 0x68]
jmp 0x1004f595
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.10045df0
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.10057bf0
mov al, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
jne 0x1004f5cd
test al, al
je 0x1004f701
mov edx, ebx
and dl, 1
neg dl
sbb edx, edx
add edx, 6
test al, al
mov dword [ebp + 0x1c50], edx
je 0x1004f701
cmp byte [ebp + 0x3e5], 0
je 0x1004f63a
test ebx, ebx
jne 0x1004f63a
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.10046ea0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.100403e0
mov al, byte [esp + 0x12]
test al, al
je 0x1004f717
mov eax, 0x20
jmp 0x1004f723
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.10047510
mov al, byte [esp + 0x16]
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x1004f628
test al, al
jne 0x1004f630
cmp byte [esp + 0x13], al
je 0x1004f73c
xor eax, eax
cmp byte [esp + 0x13], al
setne al
add eax, 0x1e
fld1
push ecx
fstp dword [esp]
push eax
call fcn.1003f9d0
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 0x1004f454
xor esi, esi
cmp dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jle 0x1004f8e8
fld dword [0x101a612c]
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.10041470
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.10045df0
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.10057bf0
mov cl, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
je 0x1004f7c7
fld dword [0x101a78cc]
fcomp dword [ebp + 0x19ac]
fnstsw ax
test ah, 5
jnp 0x1004f7cf
test cl, cl
je 0x1004f8d7
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 0x1004f8d7
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 0x1004f83f
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 [0x101a5f08]
fstp dword [esp + 0x34]
jmp 0x1004f8b8
cmp esi, 1
jne 0x1004f876
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 [0x101a5f08]
fstp dword [esp + 0x30]
jmp 0x1004f8b8
cmp esi, 2
jne 0x1004f897
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 0x1004f827
cmp esi, 3
jne 0x1004f8b6
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 0x1004f85e
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.10047510
mov esi, dword [esp + 0x20]
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jl 0x1004f760
call fcn.10047dc0
mov eax, dword [ebp + 0x1adc]
test eax, eax
je 0x1004f9b0
cmp dword [eax + 0x2f0], edi
jne 0x1004f9b0
fldz
mov esi, dword [ebp + 0x1ac4]
cmp esi, 3
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
jne 0x1004f952
cmp byte [ebp + 0x109], 0
je 0x1004f952
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 1
push ecx
call fcn.10042c90
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 0x1004f984
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 2
push ecx
call fcn.10042c90
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 0x1004fa31
fucom st(2)
fnstsw ax
fstp st(2)
test ah, 0x44
jp 0x1004fa33
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x38]
pop esi
fcomp qword [0x101a7de0]
pop ebx
fnstsw ax
test ah, 0x44
jnp 0x1004f9da
mov eax, dword [esp + 0x30]
push edi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
call fcn.10043410
add esp, 4
fld dword [esp + 0x64]
fcom qword [0x101a7de0]
fnstsw ax
test ah, 0x44
jnp 0x1004fafe
call fcn.10119820
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
call fcn.10119820
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.10043410
add esp, 4
jmp 0x1004fb00
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 0x1004fa5c
fstp st(0)
jmp 0x1004fa5e
fstp st(1)
fstp dword [esp + 0x24]
fld dword [ebp + 0x18]
fmul qword [0x101a7f48]
fmul dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.10119820
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.1003f9d0
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.10046ea0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x38], edx
jmp 0x1004f9b4
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