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

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x101eaae8]
push edi
mov edi, dword [esp + 0x114]
push edi
mov dword [esp + 0x40], esi
call fcn.10046e80
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 0x1004fb97
cmp dword [esi + 0x1a38], 0
je 0x1004fb6b
fstp st(0)
lea eax, [esi + 0x1a60]
jmp 0x1004fb77
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.1004c080
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x1004fb99
fstp st(0)
mov edx, dword [esp + 0x11c]
mov ecx, edx
and ecx, 0xc0200
cmp ecx, 0xc0200
jne 0x1004fbba
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 0x1004fbda
mov dword [ebp + 8], edx
jmp 0x1004fbe4
mov edx, dword [ebp + 8]
mov dword [esp + 0x11c], edx
cmp dword [esi + 0x1978], 0
lea edi, [esi + 0x1978]
jne 0x1004fbf7
xor eax, eax
jmp 0x1004fc00
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov eax, dword [edx + eax*4 - 4]
test cl, cl
push ebx
je 0x1004fc1e
mov ebx, dword [esp + 0x120]
and ebx, 0x5000000
neg ebx
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x64], ebx
jmp 0x1004fc2a
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 0x1004fc95
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 0x1004fca7
cmp byte [esp + 0x23], 0
jne 0x1004fca7
xor eax, eax
jmp 0x1004fcac
mov eax, 1
test al, al
mov byte [ebp + 0x80], al
je 0x1004fcc8
mov bl, 1
mov ecx, 8
mov eax, ebp
call fcn.10041310
mov ebx, dword [esp + 0x64]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x1004fcfa
test ecx, ecx
lea ebx, [eax + 1]
je 0x1004fce3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1004fce8
mov eax, 8
cmp eax, ebx
jg 0x1004fcee
mov eax, ebx
push eax
mov ecx, edi
call fcn.10043c70
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.100401a0
mov cl, 1
mov edx, ebp
call fcn.100412a0
cmp dword [esp + 0x58], 0
je 0x1004fd49
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.1004a2c0
mov eax, dword [edi]
mov ebx, dword [esp + 0x64]
mov dword [ebp + 0x8c], eax
xor edi, edi
cmp byte [esp + 0x23], 0
je 0x1004fd65
test dword [esp + 0x120], 0x1000000
jne 0x1004fd65
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 0x1004fe10
test dword [ebp + 0xac], ecx
setne al
test al, al
mov byte [esp + 0x1b], al
je 0x1004fdf5
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 [0x101a7e10]
fnstsw ax
test ah, 0x41
jne 0x1004fdf5
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 0x1004fe10
mov edi, esi
add edi, 0x1a50
mov eax, ecx
mov esi, ebp
call fcn.10041b40
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x64]
xor edi, edi
mov ecx, dword [esi + 0x1a38]
cmp ecx, edi
je 0x1004fe77
mov edx, dword [ebp + 0xb0]
and edx, ecx
je 0x1004fe38
fldz
mov byte [esp + 0x2b], 1
fcomp dword [esi + 0x1a60]
fnstsw ax
test ah, 5
jnp 0x1004fe3d
mov byte [esp + 0x2b], 0
cmp edx, edi
je 0x1004fe55
fldz
mov byte [esp + 0x2a], 1
fcomp dword [esi + 0x1a64]
fnstsw ax
test ah, 5
jnp 0x1004fe5a
mov byte [esp + 0x2a], 0
mov edi, dword [esp + 0x40]
add edi, 0x1a60
mov eax, ecx
mov esi, ebp
call fcn.10041c80
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x64]
xor edi, edi
cmp dword [esi + 0x1a3c], edi
je 0x1004febb
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 0x1004feda
mov ecx, ebp
call fcn.1003e560
fstp dword [esp + 0x38]
mov ecx, ebp
call fcn.1003e4b0
fadd dword [esp + 0x38]
fadd dword [ebp + 0x38]
fstp dword [ebp + 0x38]
jmp 0x1004feda
cmp byte [esp + 0x63], 0
je 0x1004feda
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 0x1004fef6
movzx eax, byte [esi + 0x1a70]
push eax
mov eax, ebp
call fcn.10041d30
add esp, 4
cmp dword [esi + 0x1a48], edi
je 0x1004ff07
push ebp
call fcn.10047750
add esp, 4
cmp byte [ebp + 0x80], 0
je 0x1004ff24
xor bl, bl
mov ecx, 8
mov eax, ebp
call fcn.10041310
mov ebx, dword [esp + 0x64]
xor edi, edi
cmp byte [esp + 0x63], 0
je 0x100520af
mov ecx, dword [esp + 0x120]
mov eax, ecx
and eax, 0x1000000
mov dword [esp + 0x74], eax
je 0x1004ff50
test ecx, 0x2000000
mov byte [esp + 0x47], 1
jne 0x1004ff55
mov byte [esp + 0x47], 0
mov ecx, dword [esp + 0x120]
push ebx
push ecx
push ebp
call fcn.10041590
fld dword [0x101a78b0]
mov byte [ebp + 0x7a], 1
fst dword [esp + 0x54]
xor eax, eax
fstp dword [esp + 0x58]
fld dword [0x101a79d8]
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 0x1005000b
test ecx, ecx
je 0x10050058
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp eax, 1
jg 0x10050003
mov eax, 1
push eax
mov ecx, edi
call fcn.10044960
mov dword [edi], 1
cmp dword [esi + 0x1ae4], 0
je 0x10050088
test dword [ebp + 8], 0x80000
jne 0x10050088
cmp byte [esp + 0x70], 0
jne 0x10050088
mov esi, dword [ebp]
mov edi, dword [esp + 0x118]
mov ecx, esi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005005f
test dl, dl
je 0x10050054
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005005f
add eax, 2
add ecx, 2
test dl, dl
jne 0x10050038
xor eax, eax
jmp 0x10050064
mov eax, 8
jmp 0x10050003
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10050088
mov edx, dword [ebp + 0x4c]
push edi
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], edx
call fcn.10045820
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.10041390
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 0x100500ae
add dword [ebp + 0xa4], 0xffffffff
cmp dword [ebp + 0xa8], 0
jle 0x100500be
add dword [ebp + 0xa8], 0xffffffff
cmp byte [esp + 0x70], 0
je 0x100500dd
cmp byte [esp + 0x2b], 0
je 0x100500d3
cmp byte [esp + 0x2a], 0
jne 0x100500dd
mov dword [ebp + 0xa8], 1
cmp byte [esp + 0x78], 0
mov ebx, dword [esp + 0x120]
je 0x10050134
test ebx, 0x6000000
je 0x10050134
test bl, 0x40
mov dword [ebp + 0xa8], 1
je 0x10050134
cmp byte [esp + 0x2b], 0
fldz
jne 0x10050111
fst dword [ebp + 0x1c]
fst dword [ebp + 0x14]
cmp byte [esp + 0x2a], 0
jne 0x1005011e
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.100401a0
cmp dword [esp + 0x74], 0
je 0x1005014e
mov ebx, dword [esp + 0x40]
fld dword [ebx + 0x1538]
jmp 0x10050174
test ebx, 0x6000000
je 0x1005016a
test ebx, 0x8000000
jne 0x1005016a
mov ebx, dword [esp + 0x40]
fld dword [ebx + 0x1540]
jmp 0x10050174
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 0x100501e9
test ecx, 0x4010000
jne 0x100501e9
fldz
fcom dword [ebp + 0x48]
fnstsw ax
test ah, 0x44
jp 0x100501e7
test ecx, 0x400
je 0x100501c7
fld dword [ebx + 0x1518]
fstp dword [esp + 0x2c]
jmp 0x100501cb
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 0x100501e9
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 0x10050215
fstp st(0)
jmp 0x10050217
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 0x1005023a
fstp st(0)
jmp 0x1005023c
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 0x100502db
test cl, 0x20
jne 0x100502db
lea ecx, [esp + 0xc4]
push ecx
mov ecx, ebp
call fcn.1003e4f0
cmp dword [ebx + 0x1998], ebp
jne 0x100502ba
cmp dword [ebx + 0x19a0], 0
jne 0x100502ba
cmp dword [ebx + 0x19a8], 0
jne 0x100502ba
push 1
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xcc]
push eax
call fcn.10040970
add esp, 0xc
test al, al
je 0x100502ba
cmp byte [ebx + 0x3e5], 0
je 0x100502ba
mov byte [ebp + 0x7e], 1
cmp byte [ebp + 0x7e], 0
je 0x100502df
cmp byte [ebp + 0x7d], 0
push ebp
sete cl
mov byte [ebp + 0x7d], cl
call fcn.10043410
push ebp
call fcn.10047750
add esp, 8
jmp 0x100502df
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.100470f0
fld dword [0x101a79d8]
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 0x10050347
cmp byte [ebp + 0x7d], 0
jne 0x10050347
cmp byte [esp + 0x2b], 0
jne 0x1005032c
fld dword [esp + 0x68]
fst dword [esp + 0x10]
fstp dword [ebp + 0x1c]
cmp byte [esp + 0x2a], 0
jne 0x100503e2
fld dword [esp + 0x6c]
fst dword [esp + 0x14]
fstp dword [ebp + 0x20]
jmp 0x100503e2
mov eax, dword [ebp + 0x90]
test eax, eax
jg 0x1005035e
cmp dword [ebp + 0x94], 0
jle 0x100503e2
cmp byte [esp + 0x2b], 0
jne 0x10050396
test eax, eax
jle 0x10050396
cmp byte [ebp + 0x98], 0
fld dword [esp + 0x68]
je 0x1005038b
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x1c]
fstp dword [esp]
call fcn.10044b40
add esp, 8
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [ebp + 0x1c]
cmp byte [esp + 0x2a], 0
jne 0x100503d3
cmp dword [ebp + 0x94], 0
jle 0x100503d3
cmp byte [ebp + 0x98], 0
fld dword [esp + 0x6c]
je 0x100503c8
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x20]
fstp dword [esp]
call fcn.10044b40
add esp, 8
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [ebp + 0x20]
cmp byte [ebp + 0x7d], 0
jne 0x100503e2
push ebp
call fcn.10043410
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.10046ea0
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 0x1005043b
cmp dword [esp + 0x74], 0
jne 0x1005043b
lea eax, [esp + 0xc4]
push eax
mov ecx, ebp
call fcn.1003e4f0
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 0x1005043d
mov eax, esi
mov ecx, dword [eax]
fld qword [0x101a7de0]
mov dword [ebp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x18], edx
cmp byte [ebp + 0x7d], 0
jne 0x1005057e
fld dword [esp + 0x10]
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x10050469
fld dword [esi]
jmp 0x1005046c
fld dword [ebp + 0x24]
fstp dword [esp + 0x5c]
fld dword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10050482
fld dword [ebp + 0x20]
jmp 0x10050485
fld dword [ebp + 0x28]
mov edx, dword [esp + 0x120]
fstp dword [esp + 0x24]
test edx, 0x4000
fld dword [esp + 0x24]
jne 0x100504b1
fld dword [ebp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100504ad
test dl, 8
je 0x100504b1
xor eax, eax
jmp 0x100504b6
mov eax, 1
test edx, 0x8000
mov byte [ebp + 0x79], al
jne 0x100504f8
test al, al
je 0x100504cd
fld dword [ebx + 0x1574]
jmp 0x100504cf
fldz
fstp dword [esp + 0x24]
fld dword [ebp + 0x2c]
fld dword [esp + 0x5c]
fsub dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x100504f4
test dl, 8
jne 0x100504f4
test edx, 0x800
jne 0x100504f8
xor eax, eax
jmp 0x100504fd
mov eax, 1
test al, al
mov byte [ebp + 0x78], al
je 0x10050534
cmp byte [ebp + 0x79], 0
jne 0x10050534
fld dword [ebp + 0x30]
fld dword [ebx + 0x1574]
fsubp st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x1005052d
test dl, 8
jne 0x1005052d
mov eax, 1
mov byte [ebp + 0x79], al
jmp 0x10050536
xor eax, eax
mov byte [ebp + 0x79], al
jmp 0x10050536
fstp st(0)
cmp byte [ebp + 0x78], 0
je 0x10050544
fld dword [ebx + 0x1574]
jmp 0x10050546
fldz
cmp byte [ebp + 0x79], 0
fstp dword [esp + 0x5c]
je 0x10050558
fld dword [ebx + 0x1574]
jmp 0x1005055a
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 0x10050587
mov edx, dword [esp + 0x120]
fstp st(0)
cmp byte [esp + 0x78], 0
je 0x100505c3
cmp dword [esp + 0x58], 0
mov dword [ebp + 0xa0], 0xffffffff
je 0x100505c3
cmp byte [esp + 0x1b], 0
jne 0x100505c3
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 0x1005061a
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.1004a140
cmp dword [esp + 0x58], 0
jne 0x10050613
cmp byte [esp + 0x1b], 0
jne 0x10050613
cmp byte [esp + 0x47], 0
jne 0x10050613
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 [0x101a7de0]
fnstsw ax
test ah, 0x44
jnp 0x1005068b
cmp dword [ebp + 0xa8], 0
jne 0x1005068b
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.1003db50
mov edi, eax
xor eax, eax
mov esi, ebp
call fcn.10041b40
jmp 0x100506d7
test edx, 0x10000000
jne 0x100506be
cmp dword [esp + 0x58], 0
je 0x100506a8
cmp byte [esp + 0x1b], 0
jne 0x100506a8
cmp byte [esp + 0x23], 0
jne 0x100506be
test edx, 0x2000000
je 0x100506d7
cmp byte [esp + 0x1b], 0
jne 0x100506d7
cmp byte [esp + 0x47], 0
jne 0x100506d7
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.1004d050
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 0x100507fc
cmp byte [esp + 0x1b], 0
jne 0x100507fc
cmp dword [ebp + 0x90], 0
jg 0x100507fc
cmp dword [ebp + 0x94], 0
jg 0x100507fc
fldz
fcom dword [ebx + 0x10]
fnstsw ax
test ah, 5
jp 0x100507fa
fcomp dword [ebx + 0x14]
fnstsw ax
test ah, 5
jp 0x100507fc
lea ecx, [ebx + 0x159c]
lea edx, [ebx + 0x1594]
lea esi, [esp + 0x94]
call fcn.1003db50
cmp byte [ebx + 0xc0], 0
je 0x10050764
test byte [ebp + 8], 1
jne 0x10050764
fld dword [ebp + 0x14]
mov ecx, ebp
fstp dword [esp + 0x30]
call fcn.1003e4b0
fstp dword [esp + 0x34]
lea eax, [esp + 0x30]
jmp 0x10050767
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.1003db50
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.1003daf0
mov edx, dword [eax]
mov dword [edi], edx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
jmp 0x100507fc
fstp st(0)
fld dword [ebp + 0xc]
call fcn.10119820
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp dword [esp + 0x10]
fld dword [ebp + 0x10]
call fcn.10119820
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 0x10050841
fld dword [ebx + 0x1534]
jmp 0x10050863
cmp dword [esp + 0x58], 0
je 0x1005085d
test dword [esp + 0x120], 0x8000000
jne 0x1005085d
fld dword [ebx + 0x153c]
jmp 0x10050863
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 0x1005089a
cmp dword [ebp + 0x328], esi
je 0x1005089a
mov ecx, dword [ebp + 0x328]
lea eax, [ecx + eax + 1]
cdq
add ecx, 1
idiv ecx
jmp 0x1005089c
mov edx, edi
mov dword [ebp + 0x330], edx
mov eax, dword [ebp + 0x33c]
cmp eax, edi
je 0x100508c6
cmp dword [ebp + 0x32c], esi
je 0x100508c6
mov ecx, dword [ebp + 0x32c]
lea eax, [ecx + eax + 1]
cdq
add ecx, 1
idiv ecx
jmp 0x100508c8
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.10047320
fld dword [0x101a79d8]
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 0x1005094a
mov eax, dword [esp + 0x120]
test eax, 0x1000
jne 0x1005094a
test eax, 0x3000000
je 0x10050945
cmp dword [esp + 0x58], 0
je 0x1005094a
mov byte [esp + 0x1b], 1
fld dword [ebx + 0x18b4]
xor eax, eax
fmul qword [0x101a7f58]
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 [0x101a6130]
mov dword [esp + 0xcc], eax
fld dword [ebx + 0x18b4]
mov dword [esp + 0xd0], eax
fmul qword [0x101a7a10]
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 0x100509c3
fstp st(0)
jmp 0x100509c5
fstp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
call fcn.10119820
cmp byte [ebp + 0x7d], 0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x5c]
jne 0x10050a01
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.1004f350
add esp, 0x10
fldz
fcomp dword [ebp + 0x14]
fnstsw ax
test ah, 5
jp 0x10050a39
test dword [esp + 0x120], 0x2000000
jne 0x10050a39
cmp dword [esp + 0x70], 0
jne 0x10050a39
fld dword [ebp + 0x14]
fmul qword [0x101a7e30]
call fcn.10119820
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jmp 0x10050a52
fld dword [ebx + 0x18b4]
fmul qword [0x101a5ee0]
call fcn.10119820
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov ecx, dword [ebp + 0x274]
fstp dword [ebp + 0x220]
call fcn.1007cd80
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.1007d470
lea edx, [esp + 0xe4]
call fcn.10041210
cmp dword [esp + 0x74], 0
je 0x10050ad3
cmp dword [esp + 0x58], 0
jne 0x10050ad3
cmp byte [esp + 0x47], 0
jne 0x10050ad3
mov eax, dword [esp + 0x64]
lea ecx, [eax + 0x1d4]
push 1
push ecx
add eax, 0x1cc
jmp 0x10050ae4
push 1
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0xec]
push eax
call fcn.10046980
add esp, 0xc
test dword [esp + 0x120], 0x8000000
je 0x10050b10
call fcn.10042790
cmp ebp, eax
jne 0x10050b10
cmp dword [ebp + 0xa8], 0
jg 0x10050b10
mov al, 1
jmp 0x10050b12
xor al, al
mov ecx, dword [ebx + 0x1ae0]
test ecx, ecx
je 0x10050b28
cmp ebp, dword [ecx + 0x2f0]
jne 0x10050b28
mov cl, 1
jmp 0x10050b2a
xor cl, cl
test al, al
mov byte [esp + 0x70], cl
jne 0x10050b3a
test cl, cl
je 0x10050c33
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.1003f9d0
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.10080e80
cmp byte [esp + 0x70], 0
je 0x10050c33
cmp ebp, dword [ebx + 0x1ae0]
jne 0x10050c33
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.1003e450
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.1003deb0
test al, al
jne 0x10050c33
fld dword [ebx + 0x151c]
push 0xf
sub esp, 8
fstp dword [esp + 4]
fld dword [ebx + 0x1aec]
fmul qword [0x101a7e00]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
push 0x2d
call fcn.1003f9d0
add esp, 8
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10080e80
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 0x10050c51
mov eax, dword [ebx + 0x1aa0]
cmp byte [esp + 0x1b], 0
jne 0x10050c71
test eax, eax
je 0x10050c6a
mov edx, dword [ebp + 0x2f4]
cmp edx, dword [eax + 0x2f4]
je 0x10050c71
mov byte [esp + 0x23], 0
jmp 0x10050c76
mov byte [esp + 0x23], 1
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
call fcn.1003e4f0
cmp byte [ebp + 0x7d], 0
je 0x10050d11
cmp byte [esp + 0x23], 0
fld dword [ebx + 0x1550]
fstp dword [esp + 0x38]
fld dword [ebp + 0x48]
fstp dword [ebx + 0x1550]
je 0x10050cb7
cmp byte [ebx + 0x1afe], 0
mov eax, 0xb
je 0x10050cbc
mov eax, 0xc
fld dword [esp + 0x58]
push ecx
fstp dword [esp]
push 1
fld1
push ecx
fstp dword [esp]
push eax
call fcn.1003f9d0
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.1003fba0
fld dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
fstp dword [ebx + 0x1550]
add esp, 0x1c
jmp 0x100513fc
mov eax, dword [esp + 0x120]
and eax, 0x80
mov dword [esp + 0x10], eax
jne 0x10050e21
fld1
mov eax, dword [esp + 0x120]
push ecx
fstp dword [esp]
call fcn.10041450
push eax
call fcn.1003f9d0
add esp, 8
cmp dword [ebx + 0x1a4c], 0
mov esi, eax
je 0x10050d9e
fld dword [ebx + 0x1a8c]
push ecx
fstp dword [esp]
call fcn.1003dc50
fmul qword [0x101a3f68]
and esi, 0xffffff
fnstcw word [esp + 0x74]
add esp, 4
movzx eax, word [esp + 0x70]
fadd qword [0x101a5110]
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.1003e4b0
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 [0x101a39b8]
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.10080e80
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [ebx + 0x1a4c], 0
jne 0x10050e83
cmp byte [ebp + 0x7d], 0
je 0x10050e40
mov eax, 0xc
jmp 0x10050e4c
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.1003f9d0
add esp, 8
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10080e80
test dword [esp + 0x120], 0x400
je 0x10050f77
lea edx, [esp + 0x48]
push edx
mov ecx, ebp
call fcn.1003e5b0
lea eax, [esp + 0x9c]
push eax
mov ecx, ebp
call fcn.1003e450
push eax
lea ecx, [esp + 0x4c]
call fcn.1003e0e0
test esi, esi
je 0x10050ec3
fld dword [esp + 0x58]
jmp 0x10050ec5
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.1003f9d0
add esp, 8
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x274]
lea edx, [esp + 0x58]
push edx
call fcn.10080e80
fldz
fcom dword [ebx + 0x1550]
fnstsw ax
test ah, 5
jp 0x10050f79
fld dword [esp + 0x54]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x1005103f
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.1003f9d0
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.10080c90
fldz
cmp byte [ebp + 0x78], 0
je 0x10050f8d
push 0
fstp st(0)
call fcn.1005b810
fldz
add esp, 4
cmp byte [ebp + 0x79], 0
je 0x10050fa1
push 1
fstp st(0)
call fcn.1005b810
fldz
add esp, 4
test byte [esp + 0x120], 2
fld dword [esp + 0x5c]
fld dword [esp + 0x24]
jne 0x10051249
xor ebx, ebx
cmp dword [esp + 0x94], ebx
jle 0x10051249
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 0x10051046
fxch st(1)
lea eax, [esp + 0x10c]
fst dword [esp + 0x10c]
fxch st(1)
fst dword [esp + 0x110]
jmp 0x1005105f
fstp st(0)
jmp 0x10050f79
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 0x100510e6
test ecx, ecx
fstp st(1)
lea edx, [eax + 1]
fstp st(0)
mov dword [esp + 0x1c], edx
je 0x100510cb
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x100510d0
mov eax, 8
cmp eax, edx
jg 0x100510d6
mov eax, edx
push eax
mov ecx, edi
call fcn.100442c0
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 0x10051121
fstp dword [esp + 0xac]
lea eax, [esp + 0xac]
fstp dword [esp + 0xb0]
jmp 0x10051138
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 0x100511a7
test ecx, ecx
lea edx, [eax + 1]
mov dword [esp + 0x1c], edx
je 0x10051194
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x10051199
mov eax, 8
cmp eax, edx
jg 0x1005119f
mov eax, edx
push eax
mov ecx, edi
call fcn.100442c0
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.1007e970
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.1007e5c0
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 0x10050fd7
fldz
fxch st(2)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x1005133f
cmp dword [esp + 0x10], 0
jne 0x1005133f
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.1003f9d0
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea eax, [esp + 0xac]
push eax
push esi
call fcn.10080da0
fld dword [esp + 0x5c]
fldz
fxch st(1)
mov edx, dword [esp + 0x38]
cmp edx, 0xffffffff
je 0x10051343
sub esp, 8
fxch st(1)
fstp dword [esp + 4]
mov eax, ebp
lea ecx, [esp + 0xcc]
fstp dword [esp]
call fcn.10041470
fld dword [esp + 0x2c]
add esp, 8
fcom qword [0x101a6130]
fnstsw ax
test ah, 0x41
jp 0x10051301
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.1003f9d0
add esp, 8
push eax
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [ebp + 0x274]
lea edx, [esp + 0xd0]
push edx
call fcn.10080c90
fldz
jmp 0x10051345
fstp st(0)
jmp 0x100512c6
fstp st(0)
mov esi, dword [esp + 0x40]
fcom dword [esi + 0x1550]
fnstsw ax
test ah, 5
jp 0x100513fe
cmp dword [esp + 0x2c], 0
jne 0x100513fe
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 [0x101a6130]
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.1003f9d0
add esp, 8
push eax
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [ebp + 0x274]
call fcn.10080c90
fldz
cmp dword [esi + 0x1ae0], ebp
jne 0x1005157d
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 0x10051432
fstp st(0)
jmp 0x10051434
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 0x10051539
fld dword [esp + 0xe8]
fld dword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x10051537
fld dword [esp + 0xec]
fld dword [esp + 0x50]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x10051535
fld dword [esp + 0xf0]
fld dword [esp + 0x54]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x10051533
fld dword [esi + 0x18b4]
fchs
fsub qword [0x101a6130]
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 0x1005153b
fstp st(3)
fstp st(2)
fstp st(1)
fstp st(0)
fld dword [0x101a5258]
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.1003f9d0
mov ecx, dword [ebp + 0x274]
add esp, 8
push eax
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.10080da0
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 [0x101a5f18]
mov ecx, dword [0x101eaae8]
je 0x100515b1
fldz
fld st(0)
jmp 0x100515d3
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 0x10051600
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 0x10051602
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 0x10051636
fld dword [ebp + 0x34]
jmp 0x1005163c
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 0x1005165e
fld dword [ebp + 0x38]
jmp 0x10051664
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 [0x101eaae8]
je 0x100516a2
fld st(2)
jmp 0x100516c0
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 0x100516ed
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 0x100516f3
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.100472e0
fcomp dword [0x101a3990]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x100517e5
mov eax, 1
jmp 0x100517e7
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 [0x101a7e18]
lea esi, [ebp + 0x150]
fstp dword [ebp + 0x100]
mov ecx, dword [esi + 4]
test ecx, ecx
jge 0x10051840
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x10051838
xor eax, eax
push eax
mov ecx, esi
call fcn.10043c70
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov eax, 1
mov dword [esi], 0
mov dword [ebp + 0x160], eax
je 0x1005185f
mov eax, dword [ecx + 0x160]
test ecx, ecx
mov dword [ebp + 0x164], eax
je 0x10051871
mov eax, dword [ecx + 0x168]
jmp 0x10051873
xor eax, eax
mov dword [ebp + 0x168], eax
fld dword [ebp + 0x220]
lea ebx, [ebp + 0x168]
fstp dword [ebp + 0x16c]
fld dword [0x101a3f34]
lea edi, [ebp + 0x174]
fstp dword [ebp + 0x170]
mov ecx, dword [edi + 4]
test ecx, ecx
jge 0x100518bb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x100518b3
xor eax, eax
push eax
mov ecx, edi
call fcn.10044340
lea esi, [ebp + 0x180]
mov dword [edi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jge 0x100518e5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x100518dd
xor eax, eax
push eax
mov ecx, esi
call fcn.10044440
mov dword [esi], 0
mov ecx, dword [ebp + 0x190]
test ecx, ecx
lea esi, [ebp + 0x18c]
jge 0x10051912
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x1005190a
xor eax, eax
push eax
mov ecx, esi
call fcn.10044440
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 0x10051958
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
jg 0x10051950
xor eax, eax
push eax
mov ecx, esi
call fcn.100448e0
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.10059bb0
cmp dword [esp + 0x74], 0
je 0x1005199d
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0x168]
cmp dword [ebx], eax
je 0x1005199d
push ebx
mov ecx, edi
mov dword [ebx], eax
call fcn.10049ea0
cmp dword [ebp + 0x90], 0
jle 0x100519ad
add dword [ebp + 0x90], 0xffffffff
cmp dword [ebp + 0x94], 0
jle 0x100519bd
add dword [ebp + 0x94], 0xffffffff
cmp byte [esp + 0x1b], 0
je 0x100519d5
push ebp
call fcn.10047750
push 0
push ebp
call fcn.10042a10
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x10051e10
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 0x10051a36
lea eax, [ebp + 0xc]
push eax
push 0
push str.COLLAPSE
mov ecx, ebp
call fcn.10045db0
push eax
call fcn.10058440
add esp, 8
test al, al
je 0x10051a36
mov byte [ebp + 0x7e], 1
cmp dword [esp + 0x11c], 0
je 0x10051afc
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 [0x101a5110]
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 [0x101a6130]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
push eax
push 0
push str.CLOSE
call fcn.10045db0
push eax
call fcn.1005b5e0
add esp, 0xc
test al, al
je 0x10051afc
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 0x10051b44
fld dword [0x101a3f34]
push ecx
fstp dword [esp]
push 0
push 0
lea edx, [esp + 0x54]
push 0x101a7f60
push edx
call fcn.10040890
fld dword [eax]
add esp, 0x14
jmp 0x10051b46
fldz
mov ebx, dword [esp + 0x118]
fstp dword [esp + 0x5c]
fld dword [0x101a3f34]
push ecx
fstp dword [esp]
push 1
push 0
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.10040890
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 [0x101a39b8]
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 0x10051bd6
fadd dword [eax + 0x18b4]
fadd dword [eax + 0x155c]
cmp dword [esp + 0x11c], 0
fstp dword [esp + 0x10]
fld dword [eax + 0x1544]
je 0x10051bf6
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 0x10051c27
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 0x10051c99
fld dword [esp + 0x90]
fsub dword [esp + 0x88]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fsub qword [0x101a5108]
jmp 0x10051ca3
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.1004ef00
add esp, 0x1c
test esi, esi
je 0x10051e10
fld dword [esp + 0x5c]
fsubr qword [0x101a5f18]
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 0x10051d39
fstp st(0)
jmp 0x10051d3b
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 [0x101a7e00]
call fcn.10119820
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 0x101a7f60
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.1004ef00
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.1003db50
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.1003daf0
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 0x10051eaf
cmp dword [esp + 0x2c], 0
je 0x10051eaf
fld dword [ebp + 0x48]
jmp 0x10051eb9
mov ecx, dword [esp + 0x40]
fld dword [ecx + 0x1550]
test dword [ebp + 8], eax
fstp dword [esp + 0x38]
je 0x10051eef
mov eax, dword [0x101eaae8]
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 0x10051ef5
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 [0x101a5110]
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.10119820
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 0x10051f70
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.10119820
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.10119820
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.10119820
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 0x10051ff4
fstp st(1)
fldz
jmp 0x10051ff6
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.10119820
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.10119820
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.10040970
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.10046980
add esp, 0xc
cmp byte [esp + 0x63], 0
je 0x100520d2
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 0x10052173
test al, 0x40
jne 0x1005215a
cmp dword [ebp + 0x90], edi
jg 0x1005215a
cmp dword [ebp + 0x94], edi
jg 0x1005215a
fld dword [ebp + 0x1dc]
fld dword [ebp + 0x1e4]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x10052154
fld dword [ebp + 0x1e0]
fld dword [ebp + 0x1e8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x1005215a
mov dword [ebp + 0xa4], ecx
cmp ebx, edi
je 0x10052173
cmp byte [ebx + 0x7d], 0
jne 0x1005216d
cmp byte [ebx + 0x81], 0
je 0x10052173
mov dword [ebp + 0xa4], ecx
fldz
pop ebx
fcomp dword [esi + 0x1510]
fnstsw ax
test ah, 1
jne 0x10052189
mov dword [ebp + 0xa4], ecx
cmp dword [ebp + 0xa4], edi
jg 0x1005219d
cmp dword [ebp + 0xa8], edi
jg 0x1005219d
xor eax, eax
jmp 0x1005219f
mov eax, ecx
mov byte [ebp + 0x81], al
cmp byte [ebp + 0x7d], 0
jne 0x100521b5
cmp byte [ebp + 0x7a], 0
je 0x100521b5
test al, al
je 0x100521d1
cmp dword [ebp + 0x90], edi
jg 0x100521d1
cmp dword [ebp + 0x94], edi
jg 0x100521d1
cmp dword [ebp + 0xa8], edi
jg 0x100521d1
mov eax, ecx
jmp 0x100521d3
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