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

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x101eab30]
push edi
mov edi, dword [esp + 0x114]
push edi
mov dword [esp + 0x40], esi
call fcn.10047640
fldz
mov ebp, eax
add esp, 4
test ebp, ebp
sete al
test al, al
mov dword [esp + 0x18], ebp
mov byte [esp + 0x6c], al
je 0x10050357
cmp dword [esi + 0x1a38], 0
je 0x1005032b
fstp st(0)
lea eax, [esi + 0x1a60]
jmp 0x10050337
fst dword [esp + 0x2c]
lea eax, [esp + 0x2c]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x11c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push edi
call fcn.1004c840
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x10050359
fstp st(0)
mov edx, dword [esp + 0x11c]
mov ecx, edx
and ecx, 0xc0200
cmp ecx, 0xc0200
jne 0x1005037a
or edx, 6
mov dword [esp + 0x11c], edx
mov eax, dword [esi + 0x1948]
cmp dword [ebp + 0x21c], eax
mov dword [esp + 0x28], eax
setne cl
test cl, cl
mov byte [esp + 0x5f], cl
je 0x1005039a
mov dword [ebp + 8], edx
jmp 0x100503a4
mov edx, dword [ebp + 8]
mov dword [esp + 0x11c], edx
cmp dword [esi + 0x1978], 0
lea edi, [esi + 0x1978]
jne 0x100503b7
xor eax, eax
jmp 0x100503c0
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov eax, dword [edx + eax*4 - 4]
test cl, cl
push ebx
je 0x100503de
mov ebx, dword [esp + 0x120]
and ebx, 0x5000000
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x64], ebx
jmp 0x100503ea
mov eax, dword [ebp + 0x2ec]
mov dword [esp + 0x64], eax
mov ebx, eax
cmp dword [esp + 0x11c], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x120]
setne cl
add edx, 0xffffffff
mov byte [ebp + 0x82], cl
cmp dword [ebp + 0x21c], edx
setl byte [esp + 0x78]
cmp dword [ebp + 0xa8], 0
setg byte [esp + 0x23]
and eax, 0x4000000
mov dword [esp + 0x58], eax
je 0x10050455
mov eax, dword [esi + 0x1a28]
mov ecx, dword [esi + 0x1a24]
lea eax, [eax + eax*8]
cmp ebp, dword [ecx + eax*4 + 4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x8c]
setne dl
cmp ecx, dword [eax]
setne al
or dl, al
or byte [esp + 0x78], dl
cmp byte [esp + 0x78], 0
jne 0x10050467
cmp byte [esp + 0x23], 0
jne 0x10050467
xor eax, eax
jmp 0x1005046c
mov eax, 1
test al, al
mov byte [ebp + 0x80], al
je 0x10050488
mov bl, 1
mov ecx, 8
mov eax, ebp
call fcn.10041ad0
mov ebx, dword [esp + 0x64]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x100504ba
test ecx, ecx
lea ebx, [eax + 1]
je 0x100504a3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100504a8
mov eax, 8
cmp eax, ebx
jg 0x100504ae
mov eax, ebx
push eax
mov ecx, edi
call fcn.10044430
mov ebx, dword [esp + 0x64]
mov ecx, dword [edi]
mov edx, dword [edi + 8]
mov dword [edx + ecx*4], ebp
add dword [edi], 1
mov ecx, ebp
call fcn.10040960
mov cl, 1
mov edx, ebp
call fcn.10041a60
cmp dword [esp + 0x58], 0
je 0x10050509
mov eax, dword [esi + 0x1a28]
mov edx, dword [esi + 0x1a24]
lea ecx, [esi + 0x1a28]
lea eax, [eax + eax*8]
lea edi, [edx + eax*4]
push edi
mov dword [edi + 4], ebp
call fcn.1004aa80
mov eax, dword [edi]
mov ebx, dword [esp + 0x64]
mov dword [ebp + 0x8c], eax
xor edi, edi
cmp byte [esp + 0x23], 0
je 0x10050525
test dword [esp + 0x120], 0x1000000
jne 0x10050525
mov dword [ebp + 0x300], edi
mov ecx, dword [esi + 0x1a34]
cmp ecx, edi
mov byte [esp + 0x1b], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2a], 0
je 0x100505d0
test dword [ebp + 0xac], ecx
setne al
test al, al
mov byte [esp + 0x1b], al
je 0x100505b5
fld dword [esi + 0x1a5c]
fld dword [esi + 0x1a58]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fcomp dword [0x101a7fb0]
fnstsw ax
test ah, 0x41
jne 0x100505b5
mov ecx, dword [esi + 0x1a50]
mov dword [ebp + 0xb8], ecx
mov edx, dword [esi + 0x1a54]
mov dword [ebp + 0xbc], edx
mov eax, dword [esi + 0x1a58]
mov dword [ebp + 0xc0], eax
mov ecx, dword [esi + 0x1a5c]
mov dword [ebp + 0xc4], ecx
and dword [ebp + 0xac], 0xfffffff1
jmp 0x100505d0
mov edi, esi
add edi, 0x1a50
mov eax, ecx
mov esi, ebp
call fcn.10042300
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x64]
xor edi, edi
mov ecx, dword [esi + 0x1a38]
cmp ecx, edi
je 0x10050637
mov edx, dword [ebp + 0xb0]
and edx, ecx
je 0x100505f8
fldz
mov byte [esp + 0x2b], 1
fcomp dword [esi + 0x1a60]
fnstsw ax
test ah, 5
jnp 0x100505fd
mov byte [esp + 0x2b], 0
cmp edx, edi
je 0x10050615
fldz
mov byte [esp + 0x2a], 1
fcomp dword [esi + 0x1a64]
fnstsw ax
test ah, 5
jnp 0x1005061a
mov byte [esp + 0x2a], 0
mov edi, dword [esp + 0x40]
add edi, 0x1a60
mov eax, ecx
mov esi, ebp
call fcn.10042440
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x64]
xor edi, edi
cmp dword [esi + 0x1a3c], edi
je 0x1005067b
mov edx, dword [esi + 0x1a68]
fldz
mov dword [ebp + 0x34], edx
mov eax, dword [esi + 0x1a6c]
mov dword [ebp + 0x38], eax
fcomp dword [ebp + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x1005069a
mov ecx, ebp
call fcn.1003ed20
fstp dword [esp + 0x38]
mov ecx, ebp
call fcn.1003ec70
fadd dword [esp + 0x38]
fadd dword [ebp + 0x38]
fstp dword [ebp + 0x38]
jmp 0x1005069a
cmp byte [esp + 0x63], 0
je 0x1005069a
fldz
fst dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], edx
mov ecx, dword [esi + 0x1a40]
cmp ecx, edi
je 0x100506b6
movzx eax, byte [esi + 0x1a70]
push eax
mov eax, ebp
call fcn.100424f0
add esp, 4
cmp dword [esi + 0x1a48], edi
je 0x100506c7
push ebp
call fcn.10047f10
add esp, 4
cmp byte [ebp + 0x80], 0
je 0x100506e4
xor bl, bl
mov ecx, 8
mov eax, ebp
call fcn.10041ad0
mov ebx, dword [esp + 0x64]
xor edi, edi
cmp byte [esp + 0x63], 0
je 0x1005286f
mov ecx, dword [esp + 0x120]
mov eax, ecx
and eax, 0x1000000
mov dword [esp + 0x74], eax
je 0x10050710
test ecx, 0x2000000
mov byte [esp + 0x47], 1
jne 0x10050715
mov byte [esp + 0x47], 0
mov ecx, dword [esp + 0x120]
push ebx
push ecx
push ebp
call fcn.10041d50
fld dword [0x101a7a50]
mov byte [ebp + 0x7a], 1
fst dword [esp + 0x54]
xor eax, eax
fstp dword [esp + 0x58]
fld dword [0x101a7b78]
mov ecx, dword [esp + 0x58]
mov word [ebp + 0x86], ax
fst dword [esp + 0x5c]
mov dx, word [esi + 0x1990]
fstp dword [esp + 0x60]
mov word [ebp + 0x88], dx
add dword [esi + 0x1990], 1
mov edx, dword [esp + 0x5c]
mov word [ebp + 0x84], ax
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x1cc], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x1d0], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x1d4], edx
mov dword [ebp + 0x1d8], eax
lea edi, [ebp + 0x1c0]
mov dword [ebp + 0x21c], ecx
mov ecx, dword [edi + 4]
add esp, 0xc
cmp ecx, 1
jge 0x100507cb
test ecx, ecx
je 0x10050818
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp eax, 1
jg 0x100507c3
mov eax, 1
push eax
mov ecx, edi
call fcn.10045120
mov dword [edi], 1
cmp dword [esi + 0x1ae4], 0
je 0x10050848
test dword [ebp + 8], 0x80000
jne 0x10050848
cmp byte [esp + 0x70], 0
jne 0x10050848
mov esi, dword [ebp]
mov edi, dword [esp + 0x118]
mov ecx, esi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005081f
test dl, dl
je 0x10050814
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005081f
add eax, 2
add ecx, 2
test dl, dl
jne 0x100507f8
xor eax, eax
jmp 0x10050824
mov eax, 8
jmp 0x100507c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10050848
mov edx, dword [ebp + 0x4c]
push edi
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], edx
call fcn.10045fe0
mov ecx, dword [esp + 0x38]
mov dword [ebp], eax
add esp, 0xc
mov dword [ebp + 0x4c], ecx
mov esi, ebp
lea edi, [esp + 0x48]
call fcn.10041b50
mov edx, dword [eax]
mov dword [ebp + 0x2c], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0xa4], 0
jle 0x1005086e
add dword [ebp + 0xa4], 0xffffffff
cmp dword [ebp + 0xa8], 0
jle 0x1005087e
add dword [ebp + 0xa8], 0xffffffff
cmp byte [esp + 0x70], 0
je 0x1005089d
cmp byte [esp + 0x2b], 0
je 0x10050893
cmp byte [esp + 0x2a], 0
jne 0x1005089d
mov dword [ebp + 0xa8], 1
cmp byte [esp + 0x78], 0
mov ebx, dword [esp + 0x120]
je 0x100508f4
test ebx, 0x6000000
je 0x100508f4
test bl, 0x40
mov dword [ebp + 0xa8], 1
je 0x100508f4
cmp byte [esp + 0x2b], 0
fldz
jne 0x100508d1
fst dword [ebp + 0x1c]
fst dword [ebp + 0x14]
cmp byte [esp + 0x2a], 0
jne 0x100508de
fst dword [ebp + 0x20]
fst dword [ebp + 0x18]
fst dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], edx
mov ecx, ebp
call fcn.10040960
cmp dword [esp + 0x74], 0
je 0x1005090e
mov ebx, dword [esp + 0x40]
fld dword [ebx + 0x1538]
jmp 0x10050934
test ebx, 0x6000000
je 0x1005092a
test ebx, 0x8000000
jne 0x1005092a
mov ebx, dword [esp + 0x40]
fld dword [ebx + 0x1540]
jmp 0x10050934
mov ebx, dword [esp + 0x40]
fld dword [ebx + 0x1520]
cmp dword [esp + 0x74], 0
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [ebp + 0x48]
mov eax, dword [ebx + 0x1514]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebx + 0x1518]
mov dword [ebp + 0x40], ecx
mov ecx, dword [esp + 0x120]
je 0x100509a9
test ecx, 0x4010000
jne 0x100509a9
fldz
fcom dword [ebp + 0x48]
fnstsw ax
test ah, 0x44
jp 0x100509a7
test ecx, 0x400
je 0x10050987
fld dword [ebx + 0x1518]
fstp dword [esp + 0x2c]
jmp 0x1005098b
fst dword [esp + 0x2c]
fstp dword [esp + 0x68]
mov edx, dword [esp + 0x68]
fld dword [esp + 0x2c]
mov dword [ebp + 0x3c], edx
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x40], eax
jmp 0x100509a9
fstp st(0)
fld dword [ebp + 0x3c]
fstp dword [esp + 0x38]
fld dword [ebx + 0x1554]
fstp dword [esp + 0x94]
fld dword [esp + 0x38]
fld dword [esp + 0x94]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x100509d5
fstp st(0)
jmp 0x100509d7
fstp st(1)
fstp dword [esp + 0x2c]
fld dword [ebx + 0x1a90]
fstp dword [esp + 0x38]
fld dword [esp + 0x2c]
fld dword [esp + 0x38]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x100509fa
fstp st(0)
jmp 0x100509fc
fstp st(1)
fstp dword [esp + 0x2c]
mov eax, ecx
fld dword [esp + 0x2c]
and eax, 1
fstp dword [ebp + 0x148]
mov dword [esp + 0x2c], eax
fld dword [ebx + 0x1a94]
fstp dword [ebp + 0x14c]
jne 0x10050a9b
test cl, 0x20
jne 0x10050a9b
lea ecx, [esp + 0xc4]
push ecx
mov ecx, ebp
call fcn.1003ecb0
cmp dword [ebx + 0x1998], ebp
jne 0x10050a7a
cmp dword [ebx + 0x19a0], 0
jne 0x10050a7a
cmp dword [ebx + 0x19a8], 0
jne 0x10050a7a
push 1
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.10041130
add esp, 0xc
test al, al
je 0x10050a7a
cmp byte [ebx + 0x3e5], 0
je 0x10050a7a
mov byte [ebp + 0x7e], 1
cmp byte [ebp + 0x7e], 0
je 0x10050a9f
cmp byte [ebp + 0x7d], 0
push ebp
sete cl
mov byte [ebp + 0x7d], cl
call fcn.10043bd0
push ebp
call fcn.10047f10
add esp, 8
jmp 0x10050a9f
mov byte [ebp + 0x7d], 0
lea eax, [ebp + 0x2c]
push eax
lea edx, [esp + 0x6c]
push edx
mov eax, ebp
mov byte [ebp + 0x7e], 0
call fcn.100478b0
fld dword [0x101a7b78]
mov eax, dword [esp + 0x128]
fst dword [esp + 0x18]
add esp, 8
fstp dword [esp + 0x14]
and eax, 0x40
mov dword [esp + 0x70], eax
je 0x10050b07
cmp byte [ebp + 0x7d], 0
jne 0x10050b07
cmp byte [esp + 0x2b], 0
jne 0x10050aec
fld dword [esp + 0x68]
fst dword [esp + 0x10]
fstp dword [ebp + 0x1c]
cmp byte [esp + 0x2a], 0
jne 0x10050ba2
fld dword [esp + 0x6c]
fst dword [esp + 0x14]
fstp dword [ebp + 0x20]
jmp 0x10050ba2
mov eax, dword [ebp + 0x90]
test eax, eax
jg 0x10050b1e
cmp dword [ebp + 0x94], 0
jle 0x10050ba2
cmp byte [esp + 0x2b], 0
jne 0x10050b56
test eax, eax
jle 0x10050b56
cmp byte [ebp + 0x98], 0
fld dword [esp + 0x68]
je 0x10050b4b
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x1c]
fstp dword [esp]
call fcn.10045300
add esp, 8
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x1c]
cmp byte [esp + 0x2a], 0
jne 0x10050b93
cmp dword [ebp + 0x94], 0
jle 0x10050b93
cmp byte [ebp + 0x98], 0
fld dword [esp + 0x6c]
je 0x10050b88
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x20]
fstp dword [esp]
call fcn.10045300
add esp, 8
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [ebp + 0x20]
cmp byte [ebp + 0x7d], 0
jne 0x10050ba2
push ebp
call fcn.10043bd0
add esp, 4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov edi, ebp
call fcn.10047660
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esi + 4], edx
cmp byte [ebp + 0x7d], 0
je 0x10050bfb
cmp dword [esp + 0x74], 0
jne 0x10050bfb
lea eax, [esp + 0xc4]
push eax
mov ecx, ebp
call fcn.1003ecb0
fld dword [eax + 8]
fsub dword [eax]
fstp dword [esp + 0x30]
fld dword [eax + 0xc]
fsub dword [eax + 4]
lea eax, [esp + 0x30]
fstp dword [esp + 0x34]
jmp 0x10050bfd
mov eax, esi
mov ecx, dword [eax]
fld qword [0x101a7f80]
mov dword [ebp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x18], edx
cmp byte [ebp + 0x7d], 0
jne 0x10050d3e
fld dword [esp + 0x10]
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x10050c29
fld dword [esi]
jmp 0x10050c2c
fld dword [ebp + 0x24]
fstp dword [esp + 0x5c]
fld dword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10050c42
fld dword [ebp + 0x20]
jmp 0x10050c45
fld dword [ebp + 0x28]
mov edx, dword [esp + 0x120]
fstp dword [esp + 0x24]
test edx, 0x4000
fld dword [esp + 0x24]
jne 0x10050c71
fld dword [ebp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10050c6d
test dl, 8
je 0x10050c71
xor eax, eax
jmp 0x10050c76
mov eax, 1
test edx, 0x8000
mov byte [ebp + 0x79], al
jne 0x10050cb8
test al, al
je 0x10050c8d
fld dword [ebx + 0x1574]
jmp 0x10050c8f
fldz
fstp dword [esp + 0x24]
fld dword [ebp + 0x2c]
fld dword [esp + 0x5c]
fsub dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x10050cb4
test dl, 8
jne 0x10050cb4
test edx, 0x800
jne 0x10050cb8
xor eax, eax
jmp 0x10050cbd
mov eax, 1
test al, al
mov byte [ebp + 0x78], al
je 0x10050cf4
cmp byte [ebp + 0x79], 0
jne 0x10050cf4
fld dword [ebp + 0x30]
fld dword [ebx + 0x1574]
fsubp st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x10050ced
test dl, 8
jne 0x10050ced
mov eax, 1
mov byte [ebp + 0x79], al
jmp 0x10050cf6
xor eax, eax
mov byte [ebp + 0x79], al
jmp 0x10050cf6
fstp st(0)
cmp byte [ebp + 0x78], 0
je 0x10050d04
fld dword [ebx + 0x1574]
jmp 0x10050d06
fldz
cmp byte [ebp + 0x79], 0
fstp dword [esp + 0x5c]
je 0x10050d18
fld dword [ebx + 0x1574]
jmp 0x10050d1a
fldz
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
fld dword [esp + 0x5c]
mov dword [ebp + 0x70], eax
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x74], ecx
jmp 0x10050d47
mov edx, dword [esp + 0x120]
fstp st(0)
cmp byte [esp + 0x78], 0
je 0x10050d83
cmp dword [esp + 0x58], 0
mov dword [ebp + 0xa0], 0xffffffff
je 0x10050d83
cmp byte [esp + 0x1b], 0
jne 0x10050d83
mov eax, dword [ebx + 0x1a28]
lea ecx, [eax + eax*8]
mov eax, dword [ebx + 0x1a30]
mov edi, dword [eax + ecx*4 - 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [eax + ecx*4 - 0xc]
mov dword [ebp + 0x10], eax
cmp dword [esp + 0x74], 0
je 0x10050dda
mov edi, dword [esp + 0x64]
mov dx, word [edi + 0x150]
lea ecx, [edi + 0x150]
lea eax, [esp + 0x1c]
push eax
mov word [ebp + 0x86], dx
call fcn.1004a900
cmp dword [esp + 0x58], 0
jne 0x10050dd3
cmp byte [esp + 0x1b], 0
jne 0x10050dd3
cmp byte [esp + 0x47], 0
jne 0x10050dd3
mov ecx, dword [edi + 0xc8]
mov dword [ebp + 0xc], ecx
mov edx, dword [edi + 0xcc]
mov dword [ebp + 0x10], edx
mov edx, dword [esp + 0x120]
fld dword [ebp + 0xb8]
fcomp qword [0x101a7f80]
fnstsw ax
test ah, 0x44
jnp 0x10050e4b
cmp dword [ebp + 0xa8], 0
jne 0x10050e4b
fld dword [ebp + 0xc0]
lea edx, [ebx + 0x159c]
fmul dword [esi]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x10]
fld dword [ebp + 0xc4]
fmul dword [esi + 4]
lea esi, [esp + 0x48]
fstp dword [esp + 0x14]
fld dword [ebp + 0xb8]
fsub dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [ebp + 0xbc]
fsub dword [esp + 0x14]
fstp dword [esp + 0x34]
call fcn.1003e310
mov edi, eax
xor eax, eax
mov esi, ebp
call fcn.10042300
jmp 0x10050e97
test edx, 0x10000000
jne 0x10050e7e
cmp dword [esp + 0x58], 0
je 0x10050e68
cmp byte [esp + 0x1b], 0
jne 0x10050e68
cmp byte [esp + 0x23], 0
jne 0x10050e7e
test edx, 0x2000000
je 0x10050e97
cmp byte [esp + 0x1b], 0
jne 0x10050e97
cmp byte [esp + 0x47], 0
jne 0x10050e97
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.1004d810
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp + 0x10], edx
cmp dword [esp + 0x74], 0
jne 0x10050fbc
cmp byte [esp + 0x1b], 0
jne 0x10050fbc
cmp dword [ebp + 0x90], 0
jg 0x10050fbc
cmp dword [ebp + 0x94], 0
jg 0x10050fbc
fldz
fcom dword [ebx + 0x10]
fnstsw ax
test ah, 5
jp 0x10050fba
fcomp dword [ebx + 0x14]
fnstsw ax
test ah, 5
jp 0x10050fbc
lea ecx, [ebx + 0x159c]
lea edx, [ebx + 0x1594]
lea esi, [esp + 0x94]
call fcn.1003e310
cmp byte [ebx + 0xc0], 0
je 0x10050f24
test byte [ebp + 8], 1
jne 0x10050f24
fld dword [ebp + 0x14]
mov ecx, ebp
fstp dword [esp + 0x30]
call fcn.1003ec70
fstp dword [esp + 0x34]
lea eax, [esp + 0x30]
jmp 0x10050f27
lea eax, [ebp + 0x14]
mov ecx, dword [eax]
fld dword [ebp + 0xc]
mov edx, dword [eax + 4]
lea edi, [ebp + 0xc]
mov dword [esp + 0x10], ecx
fadd dword [esp + 0x10]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x94]
fstp dword [esp + 0x30]
lea edx, [esp + 0x30]
fld dword [edi + 4]
lea esi, [esp + 0x48]
fadd dword [esp + 0x14]
fstp dword [esp + 0x34]
call fcn.1003e310
fld dword [eax]
mov edx, edi
fsub dword [esp + 0x10]
lea esi, [esp + 0x48]
fstp dword [esp + 0x38]
fld dword [eax + 4]
mov eax, dword [esp + 0x38]
fsub dword [esp + 0x14]
mov dword [edi], eax
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], ecx
fld dword [ebx + 0x10]
fsub dword [esp + 0x94]
lea ecx, [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [ebx + 0x14]
fsub dword [esp + 0x98]
fstp dword [esp + 0x34]
call fcn.1003e2b0
mov edx, dword [eax]
mov dword [edi], edx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
jmp 0x10050fbc
fstp st(0)
fld dword [ebp + 0xc]
call fcn.10119fe0
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp dword [esp + 0x10]
fld dword [ebp + 0x10]
call fcn.10119fe0
cmp dword [esp + 0x74], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
mov dword [ebp + 0xc], ecx
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x10], edx
je 0x10051001
fld dword [ebx + 0x1534]
jmp 0x10051023
cmp dword [esp + 0x58], 0
je 0x1005101d
test dword [esp + 0x120], 0x8000000
jne 0x1005101d
fld dword [ebx + 0x153c]
jmp 0x10051023
fld dword [ebx + 0x151c]
fstp dword [esp + 0x24]
mov edi, 0x7fffffff
fld dword [esp + 0x24]
or esi, 0xffffffff
fstp dword [ebp + 0x44]
mov eax, dword [ebp + 0x338]
cmp eax, edi
je 0x1005105a
cmp dword [ebp + 0x328], esi
je 0x1005105a
mov ecx, dword [ebp + 0x328]
lea eax, [ecx + eax + 1]
cdq
add ecx, 1
idiv ecx
jmp 0x1005105c
mov edx, edi
mov dword [ebp + 0x330], edx
mov eax, dword [ebp + 0x33c]
cmp eax, edi
je 0x10051086
cmp dword [ebp + 0x32c], esi
je 0x10051086
mov ecx, dword [ebp + 0x32c]
lea eax, [ecx + eax + 1]
cdq
add ecx, 1
idiv ecx
jmp 0x10051088
mov edx, edi
mov dword [ebp + 0x334], edx
mov dword [ebp + 0x32c], esi
mov dword [ebp + 0x328], esi
mov dword [ebp + 0x33c], edi
mov dword [ebp + 0x338], edi
push 1
mov edi, ebp
lea edx, [esp + 0x4c]
call fcn.10047ae0
fld dword [0x101a7b78]
mov ecx, dword [eax]
fst dword [esp + 0x14]
mov dword [ebp + 0x58], ecx
fstp dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x5c], edx
add esp, 4
cmp byte [esp + 0x78], 0
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], ecx
mov byte [esp + 0x1b], 0
je 0x1005110a
mov eax, dword [esp + 0x120]
test eax, 0x1000
jne 0x1005110a
test eax, 0x3000000
je 0x10051105
cmp dword [esp + 0x58], 0
je 0x1005110a
mov byte [esp + 0x1b], 1
fld dword [ebx + 0x18b4]
xor eax, eax
fmul qword [0x101a80f8]
xor edx, edx
cmp byte [ebx + 0xbf], dl
mov dword [esp + 0xc4], eax
fstp dword [esp + 0x1c]
setne dl
fld dword [ebp + 0x44]
mov dword [esp + 0xc8], eax
fadd qword [0x101a6320]
mov dword [esp + 0xcc], eax
fld dword [ebx + 0x18b4]
mov dword [esp + 0xd0], eax
fmul qword [0x101a7bb0]
mov dword [esp + 0x38], esi
faddp st(1)
add edx, 1
mov edi, edx
mov dword [esp + 0x94], edi
fstp dword [esp + 0x24]
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x10051183
fstp st(0)
jmp 0x10051185
fstp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call fcn.10119fe0
cmp byte [ebp + 0x7d], 0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x5c]
jne 0x100511c1
lea eax, [esp + 0xc4]
push eax
push edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x74]
push edx
mov eax, ebp
call fcn.1004fb10
add esp, 0x10
fldz
fcomp dword [ebp + 0x14]
fnstsw ax
test ah, 5
jp 0x100511f9
test dword [esp + 0x120], 0x2000000
jne 0x100511f9
cmp dword [esp + 0x70], 0
jne 0x100511f9
fld dword [ebp + 0x14]
fmul qword [0x101a7fd0]
call fcn.10119fe0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jmp 0x10051212
fld dword [ebx + 0x18b4]
fmul qword [0x101a60d0]
call fcn.10119fe0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov ecx, dword [ebp + 0x274]
fstp dword [ebp + 0x220]
call fcn.1007d540
mov al, byte [ebx + 0x15a9]
mov edx, dword [ebp + 0x274]
neg al
sbb eax, eax
xor ecx, ecx
and eax, 2
cmp byte [ebx + 0x15a8], cl
setne cl
or eax, ecx
mov dword [edx + 0x24], eax
mov eax, dword [ebx + 0x18b0]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp + 0x274]
push edx
call fcn.1007dc30
lea edx, [esp + 0xe4]
call fcn.100419d0
cmp dword [esp + 0x74], 0
je 0x10051293
cmp dword [esp + 0x58], 0
jne 0x10051293
cmp byte [esp + 0x47], 0
jne 0x10051293
mov eax, dword [esp + 0x64]
lea ecx, [eax + 0x1d4]
push 1
push ecx
add eax, 0x1cc
jmp 0x100512a4
push 1
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0xec]
push eax
call fcn.10047140
add esp, 0xc
test dword [esp + 0x120], 0x8000000
je 0x100512d0
call fcn.10042f50
cmp ebp, eax
jne 0x100512d0
cmp dword [ebp + 0xa8], 0
jg 0x100512d0
mov al, 1
jmp 0x100512d2
xor al, al
mov ecx, dword [ebx + 0x1ae0]
test ecx, ecx
je 0x100512e8
cmp ebp, dword [ecx + 0x2f0]
jne 0x100512e8
mov cl, 1
jmp 0x100512ea
xor cl, cl
test al, al
mov byte [esp + 0x70], cl
jne 0x100512fa
test cl, cl
je 0x100513f3
fldz
push 0xf
sub esp, 8
fstp dword [esp + 4]
fld dword [ebx + 0x1bd8]
xor ecx, ecx
test al, al
fstp dword [esp]
setne cl
add ecx, 0x2e
push ecx
call fcn.10040190
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.10081640
cmp byte [esp + 0x70], 0
je 0x100513f3
cmp ebp, dword [ebx + 0x1ae0]
jne 0x100513f3
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.1003ec10
fld dword [ebx + 0x18b4]
fstp dword [esp + 0x1c]
lea edx, [esp + 0xe4]
fld dword [esp + 0x48]
push edx
fld dword [esp + 0x20]
lea ecx, [esp + 0x4c]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fsub st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd st(1)
fstp dword [esp + 0x54]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
call fcn.1003e670
test al, al
jne 0x100513f3
fld dword [ebx + 0x151c]
push 0xf
sub esp, 8
fstp dword [esp + 4]
fld dword [ebx + 0x1aec]
fmul qword [0x101a7fa0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
push 0x2d
call fcn.10040190
add esp, 8
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10081640
fld dword [ebp + 0x44]
mov eax, dword [ebx + 0x1adc]
test eax, eax
fstp dword [esp + 0x58]
fld dword [ebp + 0x48]
fstp dword [esp + 0x24]
jne 0x10051411
mov eax, dword [ebx + 0x1aa0]
cmp byte [esp + 0x1b], 0
jne 0x10051431
test eax, eax
je 0x1005142a
mov edx, dword [ebp + 0x2f4]
cmp edx, dword [eax + 0x2f4]
je 0x10051431
mov byte [esp + 0x23], 0
jmp 0x10051436
mov byte [esp + 0x23], 1
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
call fcn.1003ecb0
cmp byte [ebp + 0x7d], 0
je 0x100514d1
cmp byte [esp + 0x23], 0
fld dword [ebx + 0x1550]
fstp dword [esp + 0x38]
fld dword [ebp + 0x48]
fstp dword [ebx + 0x1550]
je 0x10051477
cmp byte [ebx + 0x1afe], 0
mov eax, 0xb
je 0x1005147c
mov eax, 0xc
fld dword [esp + 0x58]
push ecx
fstp dword [esp]
push 1
fld1
push ecx
fstp dword [esp]
push eax
call fcn.10040190
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
add esp, 8
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x94]
push edx
push eax
push ecx
call fcn.10040360
fld dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
fstp dword [ebx + 0x1550]
add esp, 0x1c
jmp 0x10051bbc
mov eax, dword [esp + 0x120]
and eax, 0x80
mov dword [esp + 0x10], eax
jne 0x100515e1
fld1
mov eax, dword [esp + 0x120]
push ecx
fstp dword [esp]
call fcn.10041c10
push eax
call fcn.10040190
add esp, 8
cmp dword [ebx + 0x1a4c], 0
mov esi, eax
je 0x1005155e
fld dword [ebx + 0x1a8c]
push ecx
fstp dword [esp]
call fcn.1003e410
fmul qword [0x101a3f70]
and esi, 0xffffff
fnstcw word [esp + 0x74]
add esp, 4
movzx eax, word [esp + 0x70]
fadd qword [0x101a5230]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x9c]
mov edx, dword [esp + 0x9c]
shl edx, 0x18
or esi, edx
fldcw word [esp + 0x70]
fld dword [ebp + 0x10]
mov ecx, ebp
fadd dword [ebp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp + 0xc]
fadd dword [ebp + 0x14]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fstp dword [esp + 0x34]
call fcn.1003ec70
mov eax, dword [esp + 0x2c]
fstp dword [esp + 0xa0]
fld dword [ebp + 0x10]
neg eax
fadd dword [esp + 0xa0]
sbb eax, eax
and eax, 3
add eax, 0xc
fstp dword [esp + 0x1c]
push eax
fld dword [ebp + 0xc]
push ecx
fadd qword [0x101a39c0]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x84]
fstp dword [esp + 0x84]
fld dword [esp + 0x24]
fstp dword [esp + 0x88]
fld dword [esp + 0x60]
fstp dword [esp]
push esi
push ecx
mov ecx, dword [ebp + 0x274]
push edx
call fcn.10081640
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [ebx + 0x1a4c], 0
jne 0x10051643
cmp byte [ebp + 0x7d], 0
je 0x10051600
mov eax, 0xc
jmp 0x1005160c
xor eax, eax
cmp byte [esp + 0x23], al
setne al
add eax, 0xa
fld dword [esp + 0x58]
push 3
sub esp, 8
fstp dword [esp + 4]
fld1
fstp dword [esp]
push eax
call fcn.10040190
add esp, 8
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10081640
test dword [esp + 0x120], 0x400
je 0x10051737
lea edx, [esp + 0x48]
push edx
mov ecx, ebp
call fcn.1003ed70
lea eax, [esp + 0x9c]
push eax
mov ecx, ebp
call fcn.1003ec10
push eax
lea ecx, [esp + 0x4c]
call fcn.1003e8a0
test esi, esi
je 0x10051683
fld dword [esp + 0x58]
jmp 0x10051685
fldz
fstp dword [esp + 0x1c]
push 3
fld dword [esp + 0x20]
sub esp, 8
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 0xd
call fcn.10040190
add esp, 8
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x274]
lea edx, [esp + 0x58]
push edx
call fcn.10081640
fldz
fcom dword [ebx + 0x1550]
fnstsw ax
test ah, 5
jp 0x10051739
fld dword [esp + 0x54]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100517ff
mov eax, dword [esp + 0x50]
fstp st(1)
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
fstp dword [esp + 0x7c]
sub esp, 8
mov dword [esp + 0x38], eax
fstp dword [esp + 0x88]
mov dword [esp + 0x3c], ecx
fld dword [ebx + 0x1550]
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 5
call fcn.10040190
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.10081450
fldz
cmp byte [ebp + 0x78], 0
je 0x1005174d
push 0
fstp st(0)
call fcn.1005bfd0
fldz
add esp, 4
cmp byte [ebp + 0x79], 0
je 0x10051761
push 1
fstp st(0)
call fcn.1005bfd0
fldz
add esp, 4
test byte [esp + 0x120], 2
fld dword [esp + 0x5c]
fld dword [esp + 0x24]
jne 0x10051a09
xor ebx, ebx
cmp dword [esp + 0x94], ebx
jle 0x10051a09
fstp st(2)
mov esi, 0x101dcc08
fld st(1)
fadd dword [esp + 0x58]
fstp qword [esp + 0x48]
fld dword [ebp + 0x14]
mov eax, ebx
fadd dword [ebp + 0xc]
and eax, 1
mov dword [esp + 0x70], eax
fstp dword [esp + 0x104]
fld dword [ebp + 0x10]
fadd dword [ebp + 0x18]
fstp dword [esp + 0x108]
fld dword [esp + 0x104]
fsub dword [ebp + 0xc]
fmul dword [esi - 8]
fadd dword [ebp + 0xc]
fstp dword [esp + 0x68]
fld dword [esp + 0x108]
fsub dword [ebp + 0x10]
fmul dword [esi - 4]
fadd dword [ebp + 0x10]
fstp dword [esp + 0x6c]
je 0x10051806
fxch st(1)
lea eax, [esp + 0x10c]
fst dword [esp + 0x10c]
fxch st(1)
fst dword [esp + 0x110]
jmp 0x1005181f
fstp st(0)
jmp 0x10051739
fst dword [esp + 0xd4]
lea eax, [esp + 0xd4]
fxch st(1)
fst dword [esp + 0xd8]
fxch st(1)
fld dword [esi]
mov edi, dword [ebp + 0x274]
fmul dword [eax]
mov ecx, dword [edi + 0x58]
add edi, 0x54
fstp dword [esp + 0xfc]
fld dword [eax + 4]
mov eax, dword [edi]
cmp eax, ecx
fmul dword [esi + 4]
fstp dword [esp + 0x100]
fld dword [esp + 0x68]
fadd dword [esp + 0xfc]
fstp dword [esp + 0xf4]
fld dword [esp + 0x6c]
fadd dword [esp + 0x100]
fstp dword [esp + 0xf8]
jne 0x100518a6
test ecx, ecx
fstp st(1)
lea edx, [eax + 1]
fstp st(0)
mov dword [esp + 0x1c], edx
je 0x1005188b
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x10051890
mov eax, 8
cmp eax, edx
jg 0x10051896
mov eax, edx
push eax
mov ecx, edi
call fcn.10044a80
fld dword [esp + 0x24]
fld dword [esp + 0x5c]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0xf4]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0xf8]
mov dword [eax + ecx*8 + 4], edx
add dword [edi], 1
cmp dword [esp + 0x70], 0
je 0x100518e1
fstp dword [esp + 0xac]
lea eax, [esp + 0xac]
fstp dword [esp + 0xb0]
jmp 0x100518f8
fxch st(1)
lea eax, [esp + 0xbc]
fstp dword [esp + 0xbc]
fstp dword [esp + 0xc0]
fld dword [esi]
mov edi, dword [ebp + 0x274]
fmul dword [eax]
mov ecx, dword [edi + 0x58]
add edi, 0x54
fstp dword [esp + 0x7c]
fld dword [eax + 4]
mov eax, dword [edi]
cmp eax, ecx
fmul dword [esi + 4]
fstp dword [esp + 0x80]
fld dword [esp + 0x68]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x30]
fld dword [esp + 0x6c]
fadd dword [esp + 0x80]
fstp dword [esp + 0x34]
jne 0x10051967
test ecx, ecx
lea edx, [eax + 1]
mov dword [esp + 0x1c], edx
je 0x10051954
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x10051959
mov eax, 8
cmp eax, edx
jg 0x1005195f
mov eax, edx
push eax
mov ecx, edi
call fcn.10044a80
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*8 + 4], edx
add dword [edi], 1
fld dword [esi]
fld qword [esp + 0x48]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
fmul st(1), st(0)
fld dword [esp + 0x68]
push eax
push ecx
faddp st(2)
push ecx
fxch st(1)
lea edx, [esp + 0xa8]
fstp dword [esp + 0xa8]
fmul dword [esi + 4]
fadd dword [esp + 0x78]
fstp dword [esp + 0xac]
mov ecx, dword [ebp + 0x274]
fld dword [esp + 0x64]
fstp dword [esp]
push edx
call fcn.1007f130
mov edi, dword [ebp + 0x274]
mov eax, dword [esp + ebx*4 + 0xc4]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x5c]
push eax
push ecx
push edx
mov ecx, edi
call fcn.1007ed80
fld dword [esp + 0x24]
fld dword [esp + 0x5c]
add ebx, 1
add esi, 0x18
cmp ebx, dword [esp + 0x94]
mov dword [edi + 0x54], 0
jl 0x10051797
fldz
fxch st(2)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x10051aff
cmp dword [esp + 0x10], 0
jne 0x10051aff
fstp st(2)
lea esi, [ebp + 0xc]
fstp st(0)
push ecx
fld dword [esi + 4]
fadd dword [ebp + 0x18]
fstp dword [esp + 0x14]
fld dword [esi]
fadd dword [ebp + 0x14]
fstp dword [esp + 0xa0]
fld dword [esp + 0x14]
fstp dword [esp + 0xa4]
fstp dword [esp]
push 0xf
fld dword [esp + 0x60]
sub esp, 8
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 5
call fcn.10040190
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea eax, [esp + 0xac]
push eax
push esi
call fcn.10081560
fld dword [esp + 0x5c]
fldz
fxch st(1)
mov edx, dword [esp + 0x38]
cmp edx, 0xffffffff
je 0x10051b03
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
mov eax, ebp
lea ecx, [esp + 0xcc]
fstp dword [esp]
call fcn.10041c30
fld dword [esp + 0x2c]
add esp, 8
fcom qword [0x101a6320]
fnstsw ax
test ah, 0x41
jp 0x10051ac1
fstp st(0)
fld1
fstp dword [esp + 0x38]
sub esp, 8
fld dword [esp + 0x40]
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 0x1d
call fcn.10040190
add esp, 8
push eax
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [ebp + 0x274]
lea edx, [esp + 0xd0]
push edx
call fcn.10081450
fldz
jmp 0x10051b05
fstp st(0)
jmp 0x10051a86
fstp st(0)
mov esi, dword [esp + 0x40]
fcom dword [esi + 0x1550]
fnstsw ax
test ah, 5
jp 0x10051bbe
cmp dword [esp + 0x2c], 0
jne 0x10051bbe
fstp st(0)
sub esp, 8
fld dword [esi + 0x1520]
fchs
fstp dword [esp + 0x50]
fld dword [esp + 0x94]
fadd dword [esp + 0x50]
fstp dword [esp + 0xa4]
fld dword [esp + 0x98]
fsub qword [0x101a6320]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0xa8]
fld dword [esi + 0x1520]
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fadd dword [esp + 0x8c]
fstp dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fld dword [esi + 0x1550]
fstp dword [esp + 4]
fld1
fstp dword [esp]
push 5
call fcn.10040190
add esp, 8
push eax
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10081450
fldz
cmp dword [esi + 0x1ae0], ebp
jne 0x10051d3d
fstp st(0)
fld dword [ebp + 0x44]
fstp dword [esp + 0x10]
fld dword [esi + 0x151c]
fstp dword [esp + 0x38]
fld dword [esp + 0x10]
fld dword [esp + 0x38]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x10051bf2
fstp st(0)
jmp 0x10051bf4
fstp st(1)
fstp dword [esp + 0x24]
fld dword [ebp + 0x10]
fstp dword [esp + 0x38]
fld dword [ebp + 0x14]
fadd dword [ebp + 0xc]
fstp dword [esp + 0x94]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x10]
fstp dword [esp + 0x1c]
fld dword [ebp + 0xc]
fstp dword [esp + 0x48]
fld dword [esi + 0x18b4]
fstp dword [esp + 0x10]
fld dword [esp + 0x48]
fld dword [esp + 0x10]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x38]
fsub st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x94]
fadd st(1)
fstp dword [esp + 0x50]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x54]
fld dword [esp + 0xe4]
fld dword [esp + 0x48]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x10051cf9
fld dword [esp + 0xe8]
fld dword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x10051cf7
fld dword [esp + 0xec]
fld dword [esp + 0x50]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x10051cf5
fld dword [esp + 0xf0]
fld dword [esp + 0x54]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x10051cf3
fld dword [esi + 0x18b4]
fchs
fsub qword [0x101a6320]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fsubp st(5)
fxch st(4)
fstp dword [esp + 0x48]
fld st(3)
fsubp st(3)
fxch st(2)
fstp dword [esp + 0x4c]
fadd st(2)
fstp dword [esp + 0x50]
faddp st(1)
fstp dword [esp + 0x54]
fld dword [ebp + 0x44]
fstp dword [esp + 0x24]
jmp 0x10051cfb
fstp st(3)
fstp st(2)
fstp st(1)
fstp st(0)
fld dword [0x101a53c8]
push ecx
fstp dword [esp]
push 0xffffffffffffffff
fld dword [esp + 0x2c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x1aec]
fstp dword [esp]
push 0x2d
call fcn.10040190
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.10081560
fldz
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x24], ecx
mov edx, dword [ebp + 0x20]
mov dword [ebp + 0x28], edx
fld dword [ebp + 0xc]
fsub dword [ebp + 0x58]
fadd dword [ebp + 0x3c]
fstp dword [ebp + 0x20c]
mov eax, dword [ebp + 8]
test al, 1
fld qword [0x101a6108]
mov ecx, dword [0x101eab30]
je 0x10051d71
fldz
fld st(0)
jmp 0x10051d93
fld dword [ecx + 0x18b8]
fmul dword [ebp + 0x26c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [ecx + 0x1548]
fmul st(2)
faddp st(1)
fldz
fxch st(1)
test eax, 0x400
je 0x10051dc0
fld dword [ecx + 0x18b8]
fmul dword [ebp + 0x26c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [ebp + 0x14c]
fld dword [ecx + 0x1548]
fmul st(4)
faddp st(1)
jmp 0x10051dc2
fld st(1)
fld dword [ebp + 0x10]
fsub dword [ebp + 0x5c]
fadd dword [ebp + 0x40]
fxch st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
faddp st(2)
fstp dword [esp + 0x10]
fadd dword [esp + 0x10]
fstp dword [ebp + 0x210]
fld st(2)
fcomp dword [ebp + 0x34]
fnstsw ax
test ah, 0x44
jnp 0x10051df6
fld dword [ebp + 0x34]
jmp 0x10051dfc
fld dword [ebp + 0x14]
fsub dword [ebp + 0x70]
fld dword [ebp + 0xc]
fsub dword [ebp + 0x58]
fsub dword [ebp + 0x3c]
faddp st(1)
fstp dword [ebp + 0x214]
fld st(2)
fcomp dword [ebp + 0x38]
fnstsw ax
test ah, 0x44
jnp 0x10051e1e
fld dword [ebp + 0x38]
jmp 0x10051e24
fld dword [ebp + 0x18]
fsub dword [ebp + 0x74]
fld dword [ebp + 0x10]
fsub dword [ebp + 0x5c]
fsub dword [ebp + 0x40]
faddp st(1)
fstp dword [ebp + 0x218]
fld dword [ebp + 0x3c]
fadd st(1)
fsub dword [ebp + 0x58]
fstp dword [ebp + 0x1b0]
fxch st(2)
fst dword [ebp + 0x1b4]
fst dword [ebp + 0x1b8]
mov eax, dword [ebp + 8]
test al, 1
mov ecx, dword [0x101eab30]
je 0x10051e62
fld st(2)
jmp 0x10051e80
fld dword [ecx + 0x18b8]
fmul dword [ebp + 0x26c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [ecx + 0x1548]
fmul st(3)
faddp st(1)
test eax, 0x400
je 0x10051ead
fld dword [ecx + 0x18b8]
fmul dword [ebp + 0x26c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [ebp + 0x14c]
fld dword [ecx + 0x1548]
fmulp st(4)
faddp st(3)
jmp 0x10051eb3
fstp st(2)
fld st(2)
fxch st(2)
fld dword [ebp + 0x1b0]
push ebp
faddp st(4)
fxch st(3)
fstp dword [esp + 0x34]
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fxch st(2)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
faddp st(2)
fld dword [ebp + 0x40]
faddp st(2)
fld dword [ebp + 0x5c]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x34]
fadd dword [ebp + 0xc]
fstp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
fld dword [ebp + 0x10]
mov dword [ebp + 0xd8], eax
fadd dword [esp + 0x38]
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0xdc], ecx
mov dword [ebp + 0xc8], eax
fst dword [esp + 0x34]
mov dword [ebp + 0xcc], ecx
fst dword [esp + 0x38]
mov dword [ebp + 0xd0], eax
mov dword [ebp + 0xd4], ecx
mov eax, dword [ebp + 0xd8]
mov dword [ebp + 0xe0], eax
mov ecx, dword [ebp + 0xdc]
mov eax, dword [esp + 0x34]
mov dword [ebp + 0xe4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0xf4], eax
mov dword [ebp + 0xf8], ecx
mov dword [ebp + 0xe8], eax
mov dword [ebp + 0xec], ecx
fst dword [ebp + 0xfc]
fstp dword [ebp + 0xf0]
mov byte [ebp + 0x144], 0
call fcn.10047aa0
fcomp dword [0x101a3994]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x10051fa5
mov eax, 1
jmp 0x10051fa7
xor eax, eax
mov byte [ebp + 0x145], al
mov edx, dword [ebp + 0x140]
mov dword [ebp + 0x13c], edx
mov dword [ebp + 0x140], 0
mov byte [ebp + 0x146], 0
fld dword [ebp + 0xcc]
fsub qword [0x101a7fb8]
lea esi, [ebp + 0x150]
fstp dword [ebp + 0x100]
mov ecx, dword [esi + 4]
test ecx, ecx
jge 0x10052000
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x10051ff8
xor eax, eax
push eax
mov ecx, esi
call fcn.10044430
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov eax, 1
mov dword [esi], 0
mov dword [ebp + 0x160], eax
je 0x1005201f
mov eax, dword [ecx + 0x160]
test ecx, ecx
mov dword [ebp + 0x164], eax
je 0x10052031
mov eax, dword [ecx + 0x168]
jmp 0x10052033
xor eax, eax
mov dword [ebp + 0x168], eax
fld dword [ebp + 0x220]
lea ebx, [ebp + 0x168]
fstp dword [ebp + 0x16c]
fld dword [0x101a3f3c]
lea edi, [ebp + 0x174]
fstp dword [ebp + 0x170]
mov ecx, dword [edi + 4]
test ecx, ecx
jge 0x1005207b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x10052073
xor eax, eax
push eax
mov ecx, edi
call fcn.10044b00
lea esi, [ebp + 0x180]
mov dword [edi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jge 0x100520a5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x1005209d
xor eax, eax
push eax
mov ecx, esi
call fcn.10044c00
mov dword [esi], 0
mov ecx, dword [ebp + 0x190]
test ecx, ecx
lea esi, [ebp + 0x18c]
jge 0x100520d2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x100520ca
xor eax, eax
push eax
mov ecx, esi
call fcn.10044c00
xor eax, eax
mov dword [esi], eax
mov dword [ebp + 0x1bc], eax
mov dword [ebp + 0x104], eax
lea ecx, [ebp + 0x254]
mov dword [ebp + 0x108], eax
lea esi, [ebp + 0x198]
mov dword [ebp + 0x15c], ecx
mov ecx, dword [esi + 4]
cmp ecx, eax
jge 0x10052118
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x10052110
xor eax, eax
push eax
mov ecx, esi
call fcn.100450a0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x40]
push edx
push ecx
mov dword [esi], 0
fld dword [eax + 0x1554]
fstp dword [esp]
push 3
lea ecx, [ebp + 0x224]
call fcn.1005a370
cmp dword [esp + 0x74], 0
je 0x1005215d
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0x168]
cmp dword [ebx], eax
je 0x1005215d
push ebx
mov ecx, edi
mov dword [ebx], eax
call fcn.1004a660
cmp dword [ebp + 0x90], 0
jle 0x1005216d
add dword [ebp + 0x90], 0xffffffff
cmp dword [ebp + 0x94], 0
jle 0x1005217d
add dword [ebp + 0x94], 0xffffffff
cmp byte [esp + 0x1b], 0
je 0x10052195
push ebp
call fcn.10047f10
push 0
push ebp
call fcn.100431d0
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x100525d0
mov esi, dword [ebp + 0x168]
mov ebx, dword [esp + 0x120]
mov edx, esi
or edx, 0x10
mov dword [ebp + 0x168], edx
mov edi, ebx
and edi, 0x20
mov dword [ebp + 0x134], 1
mov dword [ebp + 0x138], 2
jne 0x100521f6
lea eax, [ebp + 0xc]
push eax
push 0
push str.COLLAPSE
mov ecx, ebp
call fcn.10046570
push eax
call fcn.10058c00
add esp, 8
test al, al
je 0x100521f6
mov byte [ebp + 0x7e], 1
cmp dword [esp + 0x11c], 0
je 0x100522bc
mov eax, dword [esp + 0x40]
fld dword [eax + 0x1548]
push ecx
fstp dword [esp + 0x14]
mov ecx, ebp
fld dword [eax + 0x18b4]
lea eax, [esp + 0xa0]
fmul qword [0x101a5230]
fstp dword [esp + 0x3c]
fld dword [esp + 0x14]
fld st(0)
fchs
fld dword [esp + 0x3c]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fld dword [ebp + 0x10]
fstp dword [esp + 0xcc]
fld dword [ebp + 0x14]
fadd dword [ebp + 0xc]
fstp dword [esp + 0xd0]
fld dword [esp + 0xd0]
fadd dword [esp + 0x34]
fstp dword [esp + 0xa0]
fld dword [esp + 0xcc]
fadd dword [esp + 0x38]
fstp dword [esp + 0xa4]
fadd qword [0x101a6320]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
push eax
push 0
push str.CLOSE
call fcn.10046570
push eax
call fcn.1005bda0
add esp, 0xc
test al, al
je 0x100522bc
mov ecx, dword [esp + 0x11c]
mov byte [ecx], 0
mov dword [ebp + 0x134], 0
mov dword [ebp + 0x138], 1
mov dword [ebp + 0x168], esi
mov esi, ebx
and esi, 0x100000
je 0x10052304
fld dword [0x101a3f3c]
push ecx
fstp dword [esp]
push 0
push 0
lea edx, [esp + 0x54]
push 0x101a8100
push edx
call fcn.10041050
fld dword [eax]
add esp, 0x14
jmp 0x10052306
fldz
mov ebx, dword [esp + 0x118]
fstp dword [esp + 0x5c]
fld dword [0x101a3f3c]
push ecx
fstp dword [esp]
push 1
push 0
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.10041050
fld dword [esp + 0x70]
fadd dword [eax]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x44]
fld dword [eax + 4]
mov eax, dword [esp + 0x54]
fadd qword [0x101a39c0]
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0xa4]
add esp, 0x14
test edi, edi
fstp dword [esp + 0x34]
fld dword [eax + 0x1544]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], edx
jne 0x10052396
fadd dword [eax + 0x18b4]
fadd dword [eax + 0x155c]
cmp dword [esp + 0x11c], 0
fstp dword [esp + 0x10]
fld dword [eax + 0x1544]
je 0x100523b6
fadd dword [eax + 0x18b4]
fadd dword [eax + 0x155c]
mov edi, dword [esp + 0x40]
fstp dword [esp + 0x24]
fldz
add edi, 0x152c
fcomp dword [edi]
fnstsw ax
fld dword [esp + 0x10]
test ah, 5
jp 0x100523e7
fld st(0)
fld dword [esp + 0x24]
fld st(0)
fsubp st(2)
fld dword [edi]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x24]
cmp dword [esp + 0x11c], 0
fadd dword [esp + 0x84]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe0], edx
fstp dword [esp + 0xac]
mov eax, dword [esp + 0xac]
fld dword [esp + 0xb4]
mov dword [esp + 0xd4], eax
fsub dword [esp + 0x24]
fstp dword [esp + 0xb4]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0xdc], ecx
je 0x10052459
fld dword [esp + 0x90]
fsub dword [esp + 0x88]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub qword [0x101a5228]
jmp 0x10052463
mov edx, dword [esp + 0x40]
fld dword [edx + 0x1544]
fld dword [ebp + 0x14]
lea eax, [esp + 0xd4]
fadd dword [ebp + 0xc]
push eax
push edi
lea ecx, [esp + 0x38]
push ecx
fsubrp st(1)
push 0
push ebx
lea edx, [esp + 0xc8]
fstp dword [esp + 0xf0]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.1004f6c0
add esp, 0x1c
test esi, esi
je 0x100525d0
fld dword [esp + 0x5c]
fsubr qword [0x101a6108]
fstp dword [esp + 0x9c]
fld dword [esp + 0xb4]
fld st(0)
fld dword [esp + 0xac]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0x30]
fld st(0)
fsubp st(2)
fld dword [edi]
fmulp st(2)
fld st(2)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcom st(2)
fnstsw ax
test ah, 0x41
jp 0x100524f9
fstp st(0)
jmp 0x100524fb
fstp st(2)
mov esi, dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x38]
fadd dword [esp + 0x38]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x30]
fld dword [esp + 0xb0]
fldz
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x34]
fld dword [esi + 0x18b4]
fchs
fmul qword [0x101a7fa0]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
lea ecx, [esp + 0xd4]
push ecx
fstp dword [esp + 0x50]
lea edx, [esp + 0xa0]
fldz
push edx
fstp dword [esp + 0xa4]
push 0
fld dword [esi + 0x1530]
push 0
fstp dword [esp + 0xb0]
push 0x101a8100
lea eax, [esp + 0xd0]
push eax
fadd st(1), st(0)
lea ecx, [esp + 0xc4]
fxch st(1)
push ecx
fstp dword [esp + 0xd8]
fld dword [esp + 0xd4]
fld dword [esp + 0x68]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0xdc]
fld dword [esp + 0x4c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0xc8]
fadd dword [esp + 0x50]
fstp dword [esp + 0xcc]
call fcn.1004f6c0
add esp, 0x1c
fld dword [ebp + 0xc]
lea edx, [ebp + 0x1dc]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
fld dword [ebp + 0x10]
lea esi, [esp + 0x48]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fld dword [ebp + 0x14]
fadd dword [ebp + 0xc]
fstp dword [esp + 0x50]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [ebp + 0x1cc]
call fcn.1003e310
mov esi, dword [eax]
mov dword [edx], esi
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
add edx, 8
add ecx, 8
lea esi, [esp + 0x48]
call fcn.1003e2b0
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
fld dword [ebp + 0x48]
fadd dword [esp + 0x84]
mov eax, 0x400
test dword [esp + 0x120], eax
fstp dword [ebp + 0x1ec]
jne 0x1005266f
cmp dword [esp + 0x2c], 0
je 0x1005266f
fld dword [ebp + 0x48]
jmp 0x10052679
mov ecx, dword [esp + 0x40]
fld dword [ecx + 0x1550]
test dword [ebp + 8], eax
fstp dword [esp + 0x38]
je 0x100526af
mov eax, dword [0x101eab30]
fld dword [eax + 0x18b8]
fmul dword [ebp + 0x26c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [ebp + 0x14c]
fld dword [eax + 0x1548]
fadd st(0), st(0)
faddp st(1)
fldz
jmp 0x100526b5
fldz
fld st(0)
fxch st(1)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [esp + 0x90]
fadd dword [esp + 0x38]
fstp dword [ebp + 0x1f0]
fld dword [ebp + 0x14]
fadd dword [ebp + 0xc]
fsub dword [ebp + 0x70]
fsub dword [ebp + 0x48]
fstp dword [ebp + 0x1f4]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x10]
fsub dword [ebp + 0x74]
fsub dword [ebp + 0x48]
fstp dword [ebp + 0x1f8]
fld dword [ebp + 0x3c]
fld qword [0x101a5230]
fmul st(1), st(0)
fld dword [ebp + 0x48]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcom st(2)
fnstsw ax
test ah, 0x41
jp 0x10052730
fstp st(0)
fldz
fstp dword [esp + 0x38]
fld dword [ebp + 0x1ec]
fadd st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [ebp + 0x1fc]
fld dword [ebp + 0x1f0]
fadd st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [ebp + 0x200]
fld dword [ebp + 0x3c]
fmul st(1)
fsub dword [ebp + 0x48]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 0x41
jp 0x100527b4
fstp st(1)
fldz
jmp 0x100527b6
fxch st(1)
fstp dword [esp + 0x38]
fld dword [ebp + 0x1f4]
fadd st(1)
fsub dword [esp + 0x38]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [ebp + 0x204]
fadd dword [ebp + 0x1f8]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.10119fe0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push 0
lea eax, [esp + 0x90]
fstp dword [ebp + 0x208]
mov edx, dword [ebp + 0x50]
push eax
lea ecx, [esp + 0x8c]
push ecx
mov dword [ebp + 0x10c], edx
call fcn.10041130
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x70]
add esp, 0xc
neg al
sbb eax, eax
neg eax
mov dword [ebp + 0x110], eax
mov edx, dword [esp + 0x84]
mov dword [ebp + 0x114], edx
mov eax, dword [esp + 0x88]
mov dword [ebp + 0x118], eax
mov ecx, dword [esp + 0x8c]
mov dword [ebp + 0x11c], ecx
mov edx, dword [esp + 0x90]
mov dword [ebp + 0x120], edx
xor edi, edi
push 1
lea eax, [ebp + 0x204]
push eax
lea ecx, [ebp + 0x1fc]
push ecx
call fcn.10047140
add esp, 0xc
cmp byte [esp + 0x63], 0
je 0x10052892
mov byte [ebp + 0x7c], 0
mov eax, dword [esp + 0x120]
mov ecx, 1
add word [ebp + 0x84], cx
test eax, 0x1000000
mov dword [esi + 0x1a4c], edi
mov dword [esi + 0x1a48], edi
mov dword [esi + 0x1a44], edi
mov dword [esi + 0x1a40], edi
mov dword [esi + 0x1a3c], edi
mov dword [esi + 0x1a38], edi
mov dword [esi + 0x1a34], edi
je 0x10052933
test al, 0x40
jne 0x1005291a
cmp dword [ebp + 0x90], edi
jg 0x1005291a
cmp dword [ebp + 0x94], edi
jg 0x1005291a
fld dword [ebp + 0x1dc]
fld dword [ebp + 0x1e4]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x10052914
fld dword [ebp + 0x1e0]
fld dword [ebp + 0x1e8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x1005291a
mov dword [ebp + 0xa4], ecx
cmp ebx, edi
je 0x10052933
cmp byte [ebx + 0x7d], 0
jne 0x1005292d
cmp byte [ebx + 0x81], 0
je 0x10052933
mov dword [ebp + 0xa4], ecx
fldz
pop ebx
fcomp dword [esi + 0x1510]
fnstsw ax
test ah, 1
jne 0x10052949
mov dword [ebp + 0xa4], ecx
cmp dword [ebp + 0xa4], edi
jg 0x1005295d
cmp dword [ebp + 0xa8], edi
jg 0x1005295d
xor eax, eax
jmp 0x1005295f
mov eax, ecx
mov byte [ebp + 0x81], al
cmp byte [ebp + 0x7d], 0
jne 0x10052975
cmp byte [ebp + 0x7a], 0
je 0x10052975
test al, al
je 0x10052991
cmp dword [ebp + 0x90], edi
jg 0x10052991
cmp dword [ebp + 0x94], edi
jg 0x10052991
cmp dword [ebp + 0xa8], edi
jg 0x10052991
mov eax, ecx
jmp 0x10052993
xor eax, eax
xor edx, edx
test al, al
pop edi
mov byte [ebp + 0x7f], al
sete dl
pop esi
mov al, dl
pop ebp
add esp, 0x104
ret