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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
fld dword [0x1007fc38]
push ebx
fcomp dword [0xe7c3d4]
push esi
push edi
mov edi, dword [0x100e236c]
mov dword [esp + 0x18], 1
fnstsw ax
test ah, 1
je 0x1002e6c5
mov dword [esp + 0x18], 0
fild dword [esp + 0x18]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002e6dc
fld dword [0xe7c3d4]
jmp 0x1002e6e2
fld dword [0xe7c3d8]
fld qword [0x1007ff48]
xor eax, eax
fmul st(1), st(0)
cmp edi, 4
fmul dword [0xe7c3d4]
sete al
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fxch st(1)
fstp dword [esp + 0x20]
fsub dword [esp + 0x20]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x14]
fild dword [esp + 0x20]
fld st(0)
fldz
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x1002e72f
fld qword [0x10080fe0]
jmp 0x1002e735
fld qword [0x1007fe70]
fstp dword [esp + 0x34]
fld st(1)
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002e74e
fld qword [0x10080fd8]
jmp 0x1002e754
fld qword [0x100805c0]
fstp dword [esp + 0x30]
fld st(1)
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002e76d
fld qword [0x10080fd0]
jmp 0x1002e773
fld qword [0x10080698]
fstp dword [esp + 0x2c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002e788
fld dword [0x10080160]
jmp 0x1002e78e
fld dword [0x1007fdb0]
mov eax, dword [0x105da160]
fstp dword [esp + 0x20]
mov ecx, dword [0x8128ac8]
cmp byte [ecx + 0x76], 0
mov ebx, eax
mov dword [esp + 0x24], ebx
jbe 0x1002ebe6
cmp byte [eax + 0x14], 0
mov dword [esp + 0x1c], 1
je 0x1002e7c3
mov dword [esp + 0x1c], 6
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1002e7d8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea esi, [eax + edx]
cmp esi, 0xa
jne 0x1002e7e6
xor esi, esi
cmp eax, 4
ja case.default.0x1002e7ef
jmp dword [eax*4 + 0x1002ebf0]
cmp edi, 4
jne 0x1002e803
fld qword [0x10080fc8]
jmp 0x1002e809
fld qword [0x10080838]
fstp dword [esp + 0x10]
push ecx
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.10065d60
fadd dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x1002e8f0
cmp edi, 4
jne 0x1002e838
fld qword [0x10080fc0]
jmp 0x1002e83e
fld qword [0x10080fb8]
fstp dword [esp + 0x10]
push ecx
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.10065d60
fadd dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x1002e8f0
xor eax, eax
cmp edi, 4
setne al
push ecx
lea eax, [eax + eax + 0x17b]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp dword [esp]
call fcn.10065d60
fadd dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x1002e8f0
cmp edi, 4
jne 0x1002e89b
fld qword [0x10080fb0]
jmp 0x1002e8a1
fld qword [0x10080fa8]
fstp dword [esp + 0x10]
push ecx
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.10065d60
fadd dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x1002e8f0
cmp edi, 4
jne 0x1002e8cd
fld qword [0x10080fa0]
jmp 0x1002e8d3
fld qword [0x10080b18]
fstp dword [esp + 0x10]
push ecx
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.10065d60
fadd dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov eax, 0xe7c3d4
fdiv dword [eax]
add esp, 4
fstp dword [esp + 0x10]
mov eax, dword [ebx + esi*4 + 0x18]
cmp eax, 0xffffffff
je 0x1002ea83
cmp eax, 0x78
jb 0x1002e928
cmp eax, 0x7c
jae 0x1002e928
mov ecx, dword [0x7bc4f04]
cmp dword [ecx + 0x2a4], 0
je 0x1002ea83
mov ecx, 0x8128ac8
mov edx, dword [ecx]
movzx ecx, word [edx + eax*2 + 0x78]
imul ecx, ecx, 0x58
add ecx, dword [0x8128abc]
je 0x1002e949
cmp byte [ecx + 0x37], 3
je 0x1002ea83
cmp edi, 4
jne 0x1002e95c
fld qword [0x10080f98]
fld qword [0x10080f90]
jmp 0x1002e968
fld qword [0x10080030]
fld qword [0x10080f88]
sub esp, 0x18
fxch st(1)
fstp dword [esp + 0x40]
lea ecx, [edi - 4]
fld dword [esp + 0x40]
neg ecx
fstp dword [esp + 0x14]
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x5a
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fstp dword [esp + 0x10]
fld dword [esp + 0x44]
fstp dword [esp + 0xc]
fld dword [esp + 0x38]
fstp dword [esp + 8]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
push eax
call fcn.1002bda0
mov edx, dword [0x7bc4f04]
movzx eax, byte [edx + 0x32]
add esp, 0x1c
cmp eax, dword [ebx + esi*4 + 0x18]
jne 0x1002ea83
fldz
push ecx
fst dword [esp]
fld1
push 1
push 1
sub esp, 0x18
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [0xe7c3d8]
fmul qword [0x10080128]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fdiv dword [0xe7c3d8]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fld dword [0x100800d0]
fstp dword [esp]
call fcn.10065d60
mov ecx, 0xe7c3d4
fdiv dword [ecx]
sub esp, 8
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [esp + 8]
fld dword [0x10080f84]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp qword [esp + 0x64]
fld dword [0x1007fd50]
fstp dword [esp]
call fcn.10065d60
fdiv dword [ecx]
mov ecx, 0x637c60
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fsubr qword [esp + 0x64]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [esp]
push 0xc92c
call ecx
add esp, 0x30
fld dword [0x10080f80]
push ecx
fstp dword [esp]
push esi
fld dword [0x1008062c]
sub esp, 8
fstp dword [esp + 4]
mov ebx, 0x1aad
fld dword [esp + 0x20]
fadd qword [0x100800c0]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp]
call fcn.1002b8c0
mov eax, dword [esp + 0x28]
fstp st(0)
inc eax
add esp, 0x10
mov dword [esp + 0x18], eax
cmp eax, 5
jl 0x1002e7d0
mov edx, dword [0x7bc4f04]
movzx ecx, byte [edx + 0x32]
mov eax, dword [0x8128ac8]
movzx eax, word [eax + ecx*2 + 0x78]
imul eax, eax, 0x58
add eax, dword [0x8128abc]
je 0x1002ebe6
cmp byte [eax + 0x37], 3
je 0x1002ebe6
cmp edi, 4
jne 0x1002eb1d
fld qword [0x10080f78]
fld qword [0x10080f70]
fld qword [0x10080f68]
fld qword [0x10080f60]
jmp 0x1002eb35
fld qword [0x10080f58]
fld qword [0x1007ff28]
fld qword [0x100806b0]
fld qword [0x10080f50]
fstp dword [esp + 0x1c]
mov dword [esp + 0x20], 1
fld dword [0x1007fc38]
fcomp dword [0xe7c3d4]
fnstsw ax
test ah, 1
je 0x1002eb5c
mov dword [esp + 0x20], 0
fild dword [esp + 0x20]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002eb73
fld dword [0xe7c3d4]
jmp 0x1002eb79
fld dword [0xe7c3d8]
fmul dword [esp + 0x1c]
sub esp, 0x18
fxch st(3)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0x14]
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0x10]
fld dword [esp + 0x48]
fstp dword [esp + 0xc]
fld dword [esp + 0x4c]
fstp dword [esp + 8]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fstp dword [esp + 4]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fdiv dword [0xe7c3d4]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fstp dword [esp]
push ecx
call fcn.1002bda0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret