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

Disassembly:
sub esp, 0xa4
push ebp
mov ebp, dword [0x101e7a68]
push edi
mov edi, eax
test byte [edi + 8], 0x42
jne 0x1004f39c
cmp dword [edi + 0x90], 0
jg 0x1004f39c
cmp dword [edi + 0x94], 0
jg 0x1004f39c
cmp byte [edi + 0x7b], 0
je 0x1004f39c
fld dword [edi + 0x44]
push ebx
fadd qword [0x101a3b50]
mov bl, byte [ebp + 0xbf]
fld dword [ebp + 0x18b4]
mov al, bl
fmul qword [0x101a53d8]
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 [0x101a5920]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.100443d0
add esp, 8
call fcn.10118910
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [0x101a53c8]
call fcn.10118910
test bl, bl
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x48]
je 0x1004eca8
fld dword [0x101a3b4c]
jmp 0x1004ecaa
fldz
fstp dword [esp + 0x30]
push 0x101a5918
fld dword [0x101a53a0]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x3c]
fstp dword [esp + 0x40]
call fcn.1004c120
xor ebx, ebx
add esp, 4
cmp dword [esp + 0xc0], ebx
mov dword [esp + 0x1c], ebx
jle 0x1004efe0
fld dword [esp + 0x30]
lea esi, [ebx + ebx*2]
fld dword [edi + 0x14]
lea esi, [esi*8 + 0x101d9b48]
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 0x1004edf8
fstp dword [esp + 0x5c]
fstp dword [esp + 0x64]
jmp 0x1004edfc
fstp st(1)
fstp st(0)
fld dword [esp + 0x60]
fld dword [esp + 0x68]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004ee21
fxch st(1)
fstp dword [esp + 0x14]
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fstp dword [esp + 0x68]
jmp 0x1004ee25
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.10045680
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.10057480
mov al, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
jne 0x1004ee5d
test al, al
je 0x1004ef91
mov edx, ebx
and dl, 1
neg dl
sbb edx, edx
add edx, 6
test al, al
mov dword [ebp + 0x1c50], edx
je 0x1004ef91
cmp byte [ebp + 0x3e5], 0
je 0x1004eeca
test ebx, ebx
jne 0x1004eeca
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.10046730
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call fcn.1003fc70
mov al, byte [esp + 0x12]
test al, al
je 0x1004efa7
mov eax, 0x20
jmp 0x1004efb3
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.10046da0
mov al, byte [esp + 0x16]
mov ebx, dword [esp + 0x20]
add esp, 4
test ebx, ebx
je 0x1004eeb8
test al, al
jne 0x1004eec0
cmp byte [esp + 0x13], al
je 0x1004efcc
xor eax, eax
cmp byte [esp + 0x13], al
setne al
add eax, 0x1e
fld1
push ecx
fstp dword [esp]
push eax
call fcn.1003f260
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 0x1004ece4
xor esi, esi
cmp dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jle 0x1004f178
fld dword [0x101a3b4c]
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.10040d00
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.10045680
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.10057480
mov cl, byte [esp + 0x26]
add esp, 0x14
cmp byte [esp + 0x13], 0
je 0x1004f057
fld dword [0x101a5294]
fcomp dword [ebp + 0x19ac]
fnstsw ax
test ah, 5
jnp 0x1004f05f
test cl, cl
je 0x1004f167
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 0x1004f167
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 0x1004f0cf
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 [0x101a3928]
fstp dword [esp + 0x34]
jmp 0x1004f148
cmp esi, 1
jne 0x1004f106
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 [0x101a3928]
fstp dword [esp + 0x30]
jmp 0x1004f148
cmp esi, 2
jne 0x1004f127
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 0x1004f0b7
cmp esi, 3
jne 0x1004f146
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 0x1004f0ee
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.10046da0
mov esi, dword [esp + 0x20]
add esp, 4
add esi, 1
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jl 0x1004eff0
call fcn.10047650
mov eax, dword [ebp + 0x1adc]
test eax, eax
je 0x1004f240
cmp dword [eax + 0x2f0], edi
jne 0x1004f240
fldz
mov esi, dword [ebp + 0x1ac4]
cmp esi, 3
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
jne 0x1004f1e2
cmp byte [ebp + 0x109], 0
je 0x1004f1e2
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 1
push ecx
call fcn.10042520
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 0x1004f214
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0xac]
fstp dword [esp]
push 0
push 2
push ecx
call fcn.10042520
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 0x1004f2c1
fucom st(2)
fnstsw ax
fstp st(2)
test ah, 0x44
jp 0x1004f2c3
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x38]
pop esi
fcomp qword [0x101a57a8]
pop ebx
fnstsw ax
test ah, 0x44
jnp 0x1004f26a
mov eax, dword [esp + 0x30]
push edi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
call fcn.10042ca0
add esp, 4
fld dword [esp + 0x64]
fcom qword [0x101a57a8]
fnstsw ax
test ah, 0x44
jnp 0x1004f38e
call fcn.10118910
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
call fcn.10118910
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.10042ca0
add esp, 4
jmp 0x1004f390
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 0x1004f2ec
fstp st(0)
jmp 0x1004f2ee
fstp st(1)
fstp dword [esp + 0x24]
fld dword [ebp + 0x18]
fmul qword [0x101a5910]
fmul dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.10118910
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.1003f260
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.10046730
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 0x14
mov dword [esp + 0x38], edx
jmp 0x1004f244
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