Function at 0x40e060
Capabilities:
Check http status code
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1b8
mov eax, dword [ecx]
mov dword [ebp - 0x84], eax
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x78], ebx
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x68], ebx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x94], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x50], 0
mov eax, dword [0x4520e4]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x4128f4
mov eax, dword [ebp - 0x140]
mov dword [0x4520e4], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov dword [ebp - 0xac], edx
mov ebx, dword [edx + 8]
mov dword [ebp - 0x90], ebx
mov ebx, dword [edx + 4]
mov ecx, dword [edx + 0x20]
mov dword [ebp - 0xd0], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x88], ecx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x64], eax
test ecx, ecx
setne byte [ebp - 0x164]
setne al
movzx eax, al
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x58], 1
setle cl
test edi, edi
sete al
or cl, al
mov byte [ebp - 0x10c], cl
jne 0x40e169
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x1c]
imul ecx, esi
mov esi, ecx
mov dword [ebp - 0x60], ecx
mov eax, edx
mov edx, dword [edx + 0x24]
test edx, edx
js 0x40e169
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xa4], eax
cmp ecx, eax
je 0x412cc6
xor ecx, ecx
mov dword [ebp - 0x60], ebx
jmp 0x40e162
mov ebx, eax
shl ebx, cl
cmp ebx, esi
je 0x40e185
add ecx, 1
cmp ecx, edx
jle 0x40e15a
mov dword [ebp - 0xcc], 0xffffffff
mov eax, dword [ebp - 0xcc]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x8c], ecx
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x15c], eax
mov eax, 0x190
sar eax, cl
sub eax, 0x32
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xa4], esi
cmp ecx, 1
setg byte [ebp - 0x141]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x108], 1
mov eax, dword [ebp - 0x84]
add eax, 0xf4
mov esi, eax
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x94]
mov eax, edx
imul eax, ebx
lea ecx, [eax + eax]
add ecx, ecx
add ecx, esi
mov dword [ebp - 0xb0], ecx
mov ecx, edx
shl edx, 0xa
mov dword [ebp - 0xf4], edx
add eax, edx
add eax, eax
add eax, eax
add esi, eax
mov dword [ebp - 0xa0], esi
mov edx, dword [ebp - 0x90]
imul ecx, edx
mov dword [ebp - 0x184], ecx
lea eax, [ecx + ecx]
add eax, eax
mov dword [ebp - 0x130], eax
add esi, eax
mov dword [ebp - 0xb4], esi
add esi, eax
mov dword [ebp - 0xb8], esi
add esi, eax
mov dword [ebp - 0xc8], esi
mov eax, 0x4fb
mov esi, dword [ebp - 0x58]
cmp esi, eax
cmovle eax, esi
mov esi, eax
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x40ea57
push ecx
call fcn.00418c48
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x68]
bsr eax, dword [ecx + 0x1c]
not eax
mov edx, dword [ecx + 0x14]
add edx, eax
mov dword [ebp - 0xd8], edx
lea eax, [edx + 4]
mov ecx, eax
sar ecx, 3
mov dword [ebp - 0x58], ecx
sub esi, ecx
mov dword [ebp - 0xe4], esi
pop eax
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40ea3f
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebp - 0x60]
imul esi, eax
mov eax, dword [ebp - 0xd8]
cmp eax, 1
jle 0x40e2c9
add esi, eax
cmp dword [ebp - 0x6c], 0xffffffff
je 0x40eaa1
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
add edx, edx
add edx, edx
lea eax, [edx + esi]
lea ecx, [edx + edx]
cdq
idiv ecx
mov esi, dword [ebp - 0x84]
cmp dword [esi + 0x30], 1
adc eax, 0xffffffff
mov esi, dword [ebp - 0xcc]
cmp esi, eax
cmovle eax, esi
mov esi, eax
mov eax, 2
cmp esi, eax
cmovge eax, esi
mov ecx, eax
mov dword [ebp - 0xcc], eax
mov esi, dword [ebp - 0x58]
sub eax, esi
mov dword [ebp - 0x11c], eax
mov esi, dword [ebp - 0x80]
lea eax, [esi + esi]
mov dword [ebp - 0x17c], eax
add eax, eax
add eax, esi
add eax, eax
add eax, eax
add eax, eax
add eax, 0x14
mov dword [ebp - 0x1b4], eax
mov esi, dword [ebp - 0x70]
imul esi, eax
lea eax, [ecx + ecx]
mov dword [ebp - 0x128], eax
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
add eax, ecx
shl eax, 4
movzx ecx, byte [ebp - 0x15c]
sar eax, cl
sub eax, esi
mov dword [ebp - 0x138], 0
mov edx, dword [ebp - 0x6c]
sub edx, esi
cmp edx, eax
cmovle eax, edx
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40eb15
mov eax, dword [ebp - 0x138]
test eax, eax
jle 0x40e3d3
mov ecx, dword [ebp - 0x84]
mov esi, dword [ecx + 0x34]
test esi, esi
je 0x40e3d3
lea esi, [eax + eax]
sub esi, dword [ecx + 0xd0]
sar esi, 6
xor eax, eax
cmp dword [ebp - 0xd8], 1
sete al
add eax, eax
cmp esi, eax
cmovl esi, eax
mov eax, dword [ebp - 0xe4]
cmp esi, eax
cmovg esi, eax
cmp esi, eax
jl 0x411d7f
mov eax, dword [ebp - 0x128]
add eax, eax
add eax, eax
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x64]
cmp ecx, eax
cmovle eax, ecx
mov dword [ebp - 0x9c], eax
mov edx, dword [0x4520e4]
mov eax, edx
neg eax
and eax, 3
lea ecx, [edx + eax]
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp - 0xa4]
lea eax, [ebx + esi]
mov edx, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x94]
imul eax, edx
add eax, eax
add eax, eax
add eax, ecx
mov dword [0x4520e4], eax
mov eax, dword [ebp - 0x84]
fld dword [eax + 0xe0]
mov ecx, dword [eax + 0x1c]
mov eax, esi
sub eax, ebx
mov esi, dword [ebp - 0x80]
imul eax, esi
cdq
idiv ecx
mov esi, eax
test eax, eax
jle 0x412a83
mov eax, edi
lea edx, [esi + esi]
add edx, edx
add edx, edi
fldz
fld st(0)
fld dword [eax]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fxch st(1)
fcomi st(2)
fcmovnbe st(0), st(2)
fstp st(2)
add eax, 4
cmp edx, eax
jne 0x40e462
fxch st(1)
fchs
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
mov eax, dword [ebp - 0x80]
imul eax, ebx
cdq
idiv ecx
test eax, eax
jle 0x412a7a
lea edx, [esi + esi]
add edx, edx
add edx, edi
add eax, esi
add eax, eax
add eax, eax
add eax, edi
fldz
fld st(0)
fld dword [edx]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fxch st(1)
fcomi st(2)
fcmovnbe st(0), st(2)
fstp st(2)
add edx, 4
cmp eax, edx
jne 0x40e4b1
fxch st(1)
fchs
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
mov eax, dword [ebp - 0x84]
fst dword [eax + 0xe0]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
cmp dword [ebp - 0xd8], 1
je 0x41288f
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0xac]
add eax, 0x10
mov dword [ebp - 0x6c], eax
mov edx, edi
mov eax, dword [ebp - 0x78]
add eax, eax
add eax, eax
mov dword [ebp - 0x60], eax
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0x70]
add ebx, eax
mov eax, dword [ebp - 0x84]
lea esi, [eax + 0xc0]
xor edi, edi
fstp dword [ebp - 0x7c]
jmp 0x40e544
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40e563
fld dword [0x447844]
fld dword [ebp - 0x7c]
xor eax, eax
fcompi st(1)
fstp st(0)
seta al
push eax
push esi
push dword [ebp - 0x6c]
push ecx
push dword [ebp - 0x94]
push dword [ebp - 0xa4]
push ebx
push edx
mov dword [ebp - 0x58], edx
call fcn.00413c40
add edi, 1
mov edx, dword [ebp - 0x58]
add edx, 4
mov ecx, dword [ebp - 0x60]
add ebx, ecx
add esi, 4
add esp, 0x20
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x94], edi
jg 0x40e541
mov eax, dword [eax + 0x40]
test eax, eax
je 0x40e5b1
cmp byte [ebp - 0x98], 0
jne 0x40e5cc
mov eax, dword [ebp - 0x17c]
mov ebx, dword [ebp - 0x80]
add eax, ebx
add eax, eax
add eax, eax
xor esi, esi
mov ebx, dword [ebp - 0xe4]
cmp eax, ebx
jge 0x40e5f1
mov esi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x114]
or esi, eax
jne 0x411177
mov eax, dword [ebp - 0x84]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x411ab1
mov edi, dword [ebp - 0x84]
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x124], eax
mov eax, dword [0x4520e4]
mov dword [ebp - 0xf0], eax
mov edi, dword [edi]
mov dword [ebp - 0xbc], edi
mov edi, dword [edi + 4]
mov dword [ebp - 0x7c], edi
mov edi, eax
neg eax
and eax, 3
add edi, eax
mov dword [ebp - 0xa8], edi
mov eax, dword [ebp - 0xa4]
lea ecx, [eax + 0x400]
mov eax, dword [ebp - 0x94]
imul eax, ecx
mov dword [ebp - 0xe8], eax
add eax, eax
add eax, eax
lea ebx, [edi + eax]
mov dword [0x4520e4], ebx
mov dword [ebp - 0x48], edi
lea eax, [ecx + ecx]
add eax, eax
lea edx, [edi + eax]
mov dword [ebp - 0x44], edx
lea edx, [eax - 0x1000]
mov dword [ebp - 0x104], edx
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xa4]
add eax, edi
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x98], edx
add eax, eax
add eax, eax
mov dword [ebp - 0xc0], eax
lea eax, [edi + edi]
add eax, eax
mov dword [ebp - 0x6c], eax
mov edi, dword [ebp - 0x70]
add eax, edi
mov dword [ebp - 0x58], eax
xor edx, edx
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xf8], ebx
mov ebx, dword [ebp + edx*4 - 0x48]
mov edi, ebx
mov esi, dword [ebp - 0x98]
mov eax, 0x1000
test bl, 1
jne 0x412874
test edi, 2
jne 0x412860
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40e6e8
movsw word es:[edi], word [esi]
test al, 1
je 0x40e6ed
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x104]
mov eax, ecx
lea edi, [ebx + 0x1000]
mov esi, dword [ebp - 0x58]
cmp ecx, 4
jae 0x40f00c
test al, 2
je 0x40e70d
movsw word es:[edi], word [esi]
test al, 1
je 0x40e712
movsb byte es:[edi], byte [esi]
add edx, 1
add dword [ebp - 0x98], 0x1000
mov edi, dword [ebp - 0xc0]
add dword [ebp - 0x58], edi
cmp dword [ebp - 0x94], edx
jg 0x40e6b5
mov esi, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xf8]
test esi, esi
jne 0x40f740
mov dword [ebp - 0x4c], 0xf
mov ecx, 0xf
fldz
jmp 0x40e75c
fstp st(0)
mov eax, dword [ebp - 0x84]
mov esi, dword [eax + 0x78]
test esi, esi
je 0x40e76f
fmul dword [eax + 0xa0]
mov eax, dword [ebp - 0x84]
mov esi, dword [eax + 0x68]
mov eax, ecx
sub eax, esi
mov edx, eax
neg edx
cmovs edx, eax
lea eax, [edx + edx]
add eax, eax
add eax, edx
add eax, eax
cmp eax, ecx
jg 0x40f714
fld dword [0x447850]
cmp dword [ebp - 0xe4], 0x18
jg 0x40f702
fadd dword [0x4478d4]
fadd dword [0x4478d4]
mov eax, dword [ebp - 0x84]
fld dword [0x447854]
fld dword [eax + 0x6c]
fcomi st(1)
fstp st(1)
jbe 0x40e7d2
fxch st(1)
fsub dword [0x4478d4]
fxch st(1)
fld dword [0x4478d8]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40e7ea
fxch st(1)
fsub dword [0x4478d4]
fxch st(1)
fld dword [0x447850]
fxch st(2)
fcomi st(2)
fcmovbe st(0), st(2)
fstp st(2)
fxch st(1)
fcompi st(2)
ja 0x40f6db
fld st(1)
fsub st(1)
fabs
fld dword [0x4478d4]
fcompi st(1)
fstp st(0)
fcmovbe st(0), st(1)
fstp st(1)
fmul dword [0x4478dc]
fdiv dword [0x44788c]
fadd dword [0x447840]
sub esp, 4
fstp dword [esp]
call fcn.004190dc
pop ebx
fstp dword [ebp - 0x58]
cvttss2si eax, dword [ebp - 0x58]
lea edi, [eax - 1]
mov eax, 7
cmp edi, eax
cmovg edi, eax
xor eax, eax
test edi, edi
cmovs edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x58], eax
fld dword [0x4478e0]
fimul dword [ebp - 0x58]
fst dword [ebp - 0x154]
fchs
fstp dword [ebp - 0xe0]
mov dword [ebp - 0x174], 1
mov eax, 0x400
mov ebx, dword [ebp - 0xa4]
sub eax, ebx
add eax, eax
add eax, eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0xfc], edi
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xc4], eax
mov ebx, dword [ebp - 0x7c]
sub eax, ebx
mov dword [ebp - 0x98], eax
mov eax, 0xf
cmp esi, eax
cmovl esi, eax
mov dword [edx + 0x68], esi
mov edi, dword [ebp - 0x58]
mov eax, edi
imul eax, ebx
add eax, eax
add eax, eax
mov esi, dword [ebp - 0xd4]
add esi, eax
mov dword [ebp - 0xc0], esi
mov eax, dword [ebp - 0xdc]
imul edi, eax
mov ebx, edi
lea eax, [edi + edi]
add eax, eax
mov edi, dword [ebp - 0x70]
lea ecx, [edi + eax]
mov eax, dword [ebp - 0x6c]
mov edi, ecx
cmp eax, 4
jae 0x40efc7
test al, 2
je 0x40e90c
movsw word es:[edi], word [esi]
test al, 1
je 0x40e911
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x98]
test ecx, ecx
jne 0x40f557
push dword [edx + 0x48]
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0xbc]
push dword [eax + 0x3c]
push dword [ebp - 0x124]
push dword [edx + 0x70]
push dword [ebp - 0xe0]
fld dword [edx + 0x6c]
fchs
sub esp, 4
fstp dword [esp]
mov edi, dword [ebp - 0xa4]
mov eax, edi
mov esi, dword [ebp - 0x98]
sub eax, esi
push eax
push dword [ebp - 0x4c]
push dword [edx + 0x68]
mov dword [ebp - 0x98], edx
lea eax, [esi + 0x400]
add eax, eax
add eax, eax
mov esi, dword [ebp - 0x58]
add eax, dword [ebp + esi*4 - 0x48]
push eax
mov eax, dword [ebp - 0xc4]
add eax, ebx
add eax, eax
add eax, eax
mov esi, dword [ebp - 0x70]
add eax, esi
push eax
call fcn.00415660
add ebx, edi
add ebx, ebx
add ebx, ebx
lea ecx, [esi + ebx]
mov ebx, dword [ebp - 0x6c]
mov eax, ebx
mov edi, dword [ebp - 0xc0]
mov esi, ecx
cmp ebx, 4
mov edx, dword [ebp - 0x98]
jae 0x40efe8
test al, 2
je 0x40e9b9
movsw word es:[edi], word [esi]
test al, 1
je 0x40e9be
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x58]
mov ecx, eax
shl ecx, 0xc
mov ebx, dword [ebp - 0xb0]
add ecx, ebx
add esp, 0x30
cmp dword [ebp - 0xa4], 0x400
jle 0x40eb32
mov ebx, dword [ebp - 0x104]
add ebx, dword [ebp + eax*4 - 0x48]
mov edi, ecx
mov esi, ebx
mov eax, 0x1000
test cl, 1
jne 0x412b47
test edi, 2
jne 0x412b33
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40ea16
movsw word es:[edi], word [esi]
test al, 1
je 0x40ea1b
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x58], 1
sbb eax, eax
add eax, 2
cmp dword [ebp - 0x94], eax
jle 0x40ebac
mov esi, dword [edx + 0x68]
mov dword [ebp - 0x58], 1
jmp 0x40e8a1
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x40eaa1
mov ecx, dword [ebp - 0x60]
imul eax, ecx
mov edx, eax
jmp 0x411999
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x58], ecx
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x4117d2
cmp eax, 0xffffffff
jne 0x41196a
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0x58], 0
mov esi, dword [ebp - 0xcc]
mov eax, esi
mov ecx, dword [ebp - 0x58]
sub eax, ecx
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x80]
lea eax, [ecx + ecx]
mov dword [ebp - 0x17c], eax
add eax, eax
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
lea edx, [eax + 0x14]
mov dword [ebp - 0x1b4], edx
lea eax, [esi + esi]
mov dword [ebp - 0x128], eax
add eax, esi
add eax, eax
add eax, eax
add eax, eax
add eax, esi
shl eax, 4
movzx ecx, byte [ebp - 0x15c]
sar eax, cl
mov ecx, dword [ebp - 0x70]
imul ecx, edx
sub eax, ecx
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x68]
test eax, eax
mov dword [ebp - 0x138], 0
jne 0x40e3d3
push dword [ebp - 0xcc]
push dword [ebp - 0x78]
lea esi, [ebp - 0x40]
push esi
call fcn.004187e0
add esp, 0xc
mov dword [ebp - 0x68], esi
jmp 0x40e38a
mov dword [ebp - 0x98], edx
mov esi, dword [ebp - 0x58]
mov ebx, esi
shl ebx, 0xa
push dword [ebp - 0xf8]
mov edi, dword [ebp - 0xa4]
lea eax, [edi + ebx]
add eax, eax
add eax, eax
mov edx, dword [ebp - 0xb0]
add eax, edx
push eax
push ecx
call sub.MSVCR80.DLL_memmove
lea ecx, [ebx + 0x400]
sub ecx, edi
add ecx, ecx
add ecx, ecx
mov edx, dword [ebp - 0xb0]
add ecx, edx
mov ebx, dword [ebp + esi*4 - 0x48]
mov edx, dword [ebp - 0x104]
mov eax, edx
mov edi, ecx
lea esi, [ebx + 0x1000]
cmp edx, 4
mov edx, dword [ebp - 0x98]
jae 0x40f71f
test al, 2
je 0x40eb9f
movsw word es:[edi], word [esi]
test al, 1
je 0x40eba4
movsb byte es:[edi], byte [esi]
add esp, 0xc
jmp 0x40ea1b
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf0]
mov dword [0x4520e4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x16c], eax
fld dword [0x447854]
fld dword [ebp - 0x154]
fcompi st(1)
ja 0x40f030
mov eax, dword [ebp - 0x84]
fld dword [eax + 0x6c]
fcompi st(1)
fstp st(0)
ja 0x40f032
mov dword [ebp - 0x1a8], 0
jmp 0x40ebfd
fstp st(0)
fstp st(0)
mov eax, dword [ebp - 0x174]
test eax, eax
jne 0x40f0a2
mov esi, dword [ebp - 0x88]
test esi, esi
jne 0x40ec2c
mov eax, dword [ebp - 0xd8]
add eax, 0xf
mov ebx, dword [ebp - 0x100]
cmp eax, ebx
jl 0x412a8e
mov edi, dword [ebp - 0x84]
mov ebx, dword [edi + 0x18]
test ebx, ebx
jle 0x40f13c
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xe0], eax
test eax, eax
jne 0x40f13c
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x60]
add eax, esi
cmp dword [ebp - 0x11c], 0xe
jg 0x411dae
cmp byte [ebp - 0x164], 0
je 0x411dae
cmp dword [edi + 0xb8], 2
je 0x411dae
mov ebx, 1
fld dword [0x44785c]
mov dword [0x4520e4], eax
mov esi, dword [ebp - 0x78]
mov eax, esi
shr eax, 0x1f
add eax, esi
mov edi, eax
sar edi, 1
mov dword [ebp - 0xc0], edi
mov ecx, dword [ebp - 0x94]
test ecx, ecx
jle 0x412e94
lea edx, [edi - 0x11]
lea eax, [edx + edx]
add eax, edx
add eax, eax
mov dword [ebp - 0xd4], eax
lea eax, [edi - 1]
mov dword [ebp - 0xc4], eax
lea esi, [edi - 5]
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 0x60]
add eax, edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0xbc], 0
fild dword [ebp - 0xc0]
fild dword [ebp - 0xc0]
mov dword [ebp - 0xd8], ebx
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0x78]
test edi, edi
jle 0x4125ce
mov eax, dword [ebp - 0xbc]
add eax, eax
add eax, eax
mov edi, dword [ebp - 0x70]
add eax, edi
mov edx, ebx
fldz
fld st(0)
mov ecx, dword [ebp - 0x98]
fld dword [eax]
fadd st(1), st(0)
fxch st(2)
fadd st(1)
fld st(2)
fadd st(3)
fsubp st(1)
fld dword [0x447840]
fmul st(2)
fsubp st(3)
fxch st(1)
fstp dword [edx]
add eax, 4
add edx, 4
cmp ecx, eax
jne 0x40ed3c
fstp st(0)
fstp st(0)
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor eax, eax
test bl, 1
jne 0x412853
test edi, 2
jne 0x412848
mov ecx, dword [ebp - 0x58]
and ecx, 0xfffffffc
xor edx, edx
mov dword [edi + edx], eax
add edx, 4
cmp edx, ecx
jb 0x40ed8e
add edi, edx
test byte [ebp - 0x58], 2
je 0x40eda2
stosw word es:[edi], ax
test byte [ebp - 0x58], 1
je 0x40eda9
stosb byte es:[edi], al
cmp dword [ebp - 0x78], 1
je 0x412616
xor eax, eax
fldz
fld st(0)
mov edx, dword [ebp - 0xc0]
jmp 0x40edc3
fxch st(1)
fld dword [ebx + eax*8 + 4]
fld dword [ebx + eax*8]
fmul st(0)
fxch st(1)
fmul st(0)
faddp st(1)
fadd st(1), st(0)
fsub st(2)
fmul st(5)
faddp st(2)
fxch st(1)
fst dword [ebx + eax*4]
add eax, 1
cmp edx, eax
jg 0x40edc1
fstp st(0)
mov eax, dword [ebp - 0xc4]
fldz
fld st(0)
jmp 0x40edf6
fxch st(1)
fld dword [ebx + eax*4]
fsub st(1)
fmul dword [0x447874]
faddp st(1)
fst dword [ebx + eax*4]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
sub eax, 1
jae 0x40edf4
fstp st(1)
fmulp st(1)
fmul dword [0x447840]
fmul st(2)
fldz
fucompi st(1)
ja 0x4134e8
fsqrt
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fadd dword [0x447870]
fdivr st(1)
cmp dword [ebp - 0x78], 0x23
jle 0x40eed9
fmul dword [0x447900]
xor eax, eax
mov edx, 0xc
fnstcw word [ebp - 0x52]
movzx ecx, word [ebp - 0x52]
and ch, 0xf3
or ch, 4
mov word [ebp - 0x54], cx
fld dword [0x447870]
fadd dword [ebx + edx*4]
fmul st(1)
fldcw word [ebp - 0x54]
frndint
fldcw word [ebp - 0x52]
mov ecx, 2
fld dword [0x447904]
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x40eea1
mov ecx, 0xff
fldz
fcompi st(1)
ja 0x40eea5
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + 0x44b7e0]
jmp 0x40eea7
fstp st(0)
jmp 0x40eea7
fstp st(0)
add eax, ecx
add edx, 4
cmp edx, esi
jl 0x40ee5f
fstp st(0)
shl eax, 8
cdq
idiv dword [ebp - 0xd4]
mov edi, dword [ebp - 0xb0]
cmp eax, edi
mov ecx, dword [ebp - 0x7c]
cmovg ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ecx
cmovle eax, edi
mov dword [ebp - 0xb0], eax
jmp 0x40eedb
fstp st(0)
add dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
add dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0x60]
add dword [ebp - 0x98], ecx
cmp dword [ebp - 0x94], eax
jne 0x40ed16
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [ebp - 0xd8]
cmp dword [ebp - 0xb0], 0xc8
setg al
test ebx, ebx
je 0x412ab7
test al, al
je 0x412ab7
xor eax, eax
cmp dword [ebp - 0xb0], 0x257
setg al
mov dword [ebp - 0x98], eax
setle al
movzx eax, al
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xb0]
lea edx, [eax + eax]
add edx, eax
lea eax, [edx + edx]
add eax, eax
add eax, eax
add eax, edx
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fldz
fld st(0)
fucompi st(2)
ja 0x4129ee
fxch st(1)
fsqrt
fst dword [ebp - 0x58]
fld dword [ebp - 0x58]
fsub dword [0x447908]
fxch st(2)
fcompi st(2)
fstp st(1)
jbe 0x412a26
fstp st(0)
fldz
fstp dword [ebp - 0x150]
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x40f16d
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 1
jmp 0x40f1ab
test cl, 1
jne 0x412c25
test edi, 2
jne 0x412cb2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40e906
test edi, 1
jne 0x412c96
test edi, 2
jne 0x412c82
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40e9b3
test edi, 1
jne 0x412c5c
test edi, 2
jne 0x412c48
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40e707
fstp st(0)
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x78]
test edx, edx
je 0x40f052
fld qword [str.333333]
fld dword [eax + 0x7c]
fcompi st(1)
fstp st(0)
jbe 0x40ebed
fild dword [ebp - 0x16c]
mov eax, dword [ebp - 0x84]
fild dword [eax + 0x68]
fld qword [0x4478f0]
fmul st(1)
fxch st(2)
mov dword [ebp - 0x1a8], 1
fcomi st(2)
fstp st(2)
ja 0x40ebf9
fmul qword [0x4478f8]
xor eax, eax
fcompi st(1)
fstp st(0)
seta al
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x174]
test eax, eax
je 0x40ec0b
push 1
push 1
push dword [ebp - 0x68]
call fcn.00418414
mov eax, dword [ebp - 0x16c]
lea edx, [eax + 1]
bsr ebx, edx
mov dword [ebp - 0x58], edx
xor ebx, 0x1f
mov eax, 0x1b
sub eax, ebx
mov esi, eax
push 6
push eax
push dword [ebp - 0x68]
call fcn.004188f4
mov eax, 0x1f
sub eax, ebx
push eax
mov eax, 0x10
mov ecx, esi
shl eax, cl
mov edx, dword [ebp - 0x58]
sub edx, eax
push edx
mov ebx, dword [ebp - 0x68]
push ebx
call fcn.00418484
add esp, 0x24
push 3
push edi
push ebx
call fcn.00418484
push 2
push 0x450d84
push dword [ebp - 0x124]
push ebx
call fcn.00418744
mov edx, dword [0x4520e4]
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0xa8], eax
add esp, 0x1c
mov edi, dword [ebp - 0x84]
mov ebx, dword [edi + 0x18]
test ebx, ebx
jg 0x40ec3d
mov dword [ebp - 0xe0], 0
fldz
fstp dword [ebp - 0x150]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x40efa4
mov ebx, dword [ebp - 0x68]
bsr eax, dword [ebx + 0x1c]
not eax
add eax, dword [ebx + 0x14]
add eax, 2
mov esi, dword [ebp - 0x100]
cmp eax, esi
jge 0x41174e
xor eax, eax
mov edx, dword [ebp - 0x98]
test edx, edx
cmovne eax, dword [ebp - 0x13c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], 0
mov eax, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xf4]
sub eax, esi
add eax, eax
add eax, eax
mov edi, dword [ebp - 0xa8]
add eax, edi
mov edx, eax
neg edx
and edx, 3
add eax, edx
mov dword [ebp - 0xe8], eax
mov ebx, dword [ebp - 0x130]
lea edx, [eax + ebx]
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0xbc], eax
lea edx, [eax + ebx]
mov eax, edx
neg eax
and eax, 3
lea ebx, [edx + eax]
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x90]
imul eax, esi
mov dword [ebp - 0x160], eax
add eax, eax
add eax, eax
mov dword [ebp - 0xf8], eax
add eax, ebx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x40f53d
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 7
jle 0x40f53d
mov eax, dword [ebp - 0xb0]
mov dword [0x4520e4], eax
mov esi, dword [ebp - 0x84]
push dword [esi + 0x48]
push dword [esi + 0x1c]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
mov edi, dword [ebp - 0x80]
push edi
push dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov ebx, dword [ebp - 0xac]
mov eax, ebx
call fcn.004164f0
push dword [esi + 0x48]
push dword [ebp - 0x8c]
push edi
push dword [ebp - 0x9c]
mov esi, dword [ebp - 0xe8]
push esi
push dword [ebp - 0xa8]
push ebx
call fcn.00415a68
add esp, 0x34
push edi
push dword [ebp - 0x148]
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push ebx
call fcn.0040bb90
add esp, 0x18
mov edi, dword [ebp - 0x160]
test edi, edi
jle 0x40f2f1
fld dword [0x447840]
fimul dword [ebp - 0x8c]
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0xb0]
fld dword [eax]
fadd st(1)
fstp dword [eax]
add eax, 4
cmp edx, eax
jne 0x40f2e2
fstp st(0)
mov dword [ebp - 0xc0], 1
mov ebx, dword [ebp - 0x84]
push dword [ebx + 0x48]
push dword [ebx + 0x1c]
push dword [ebp - 0x8c]
mov edi, dword [ebp - 0x94]
push edi
mov esi, dword [ebp - 0x80]
push esi
push dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0xac]
call fcn.004164f0
add esp, 0x18
cmp edi, 2
sete dl
cmp esi, 1
sete al
and dl, al
mov byte [ebp - 0x142], dl
mov eax, 0
cmove eax, dword [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
push dword [ebx + 0x48]
push dword [ebp - 0x8c]
push esi
push dword [ebp - 0x9c]
push dword [ebp - 0xe8]
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
call fcn.00415a68
add esp, 0x1c
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x40f5b8
cmp dword [ebp - 0x64], 2
jle 0x40f5b8
mov ebx, dword [ebp - 0xe8]
lea eax, [ebx + 8]
mov edi, dword [ebp - 0x64]
lea esi, [edi + edi]
lea edx, [esi + esi]
add edx, ebx
mov ecx, ebx
fld dword [eax]
fld dword [0x447920]
fmul dword [ecx]
fucomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fld dword [0x447870]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [eax]
add eax, 4
cmp edx, eax
jne 0x40f3aa
push dword [ebp - 0x80]
push dword [ebp - 0xbc]
push dword [ebp - 0xe8]
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push dword [ebp - 0xac]
call fcn.0040bb90
mov edx, dword [0x4520e4]
mov eax, edx
neg eax
and eax, 3
lea ebx, [edx + eax]
mov dword [ebp - 0x168], ebx
mov eax, dword [ebp - 0xf8]
add eax, ebx
mov dword [0x4520e4], eax
lea eax, [esi + esi]
mov dword [ebp - 0xd4], eax
push eax
push 0
push ebx
call sub.MSVCR80.DLL_memset
add esp, 0x24
mov ebx, dword [ebp - 0x88]
test ebx, ebx
jne 0x40f5c3
mov esi, dword [ebp - 0x84]
mov ebx, dword [esi + 0xec]
mov dword [ebp - 0xf0], ebx
mov eax, dword [esi + 0x40]
test ebx, ebx
je 0x41293d
test eax, eax
jne 0x411a0e
mov ecx, dword [esi + 0x5c]
mov edx, 2
cmp ecx, edx
cmovge edx, ecx
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jle 0x413091
mov esi, dword [ebp - 0x90]
lea edi, [esi + esi]
mov dword [ebp - 0x170], edi
add edi, edi
mov dword [ebp - 0xdc], edi
lea esi, [edx + edx]
mov ebx, dword [ebp - 0xf0]
add esi, ebx
mov ebx, dword [ebp - 0xd0]
movzx edi, word [ebx]
mov word [ebp - 0xd8], di
mov dword [ebp - 0x6c], 0
xor ecx, ecx
fldz
fld st(0)
lea edi, [ebx + edx]
lea ebx, [edx + 1]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xc4], edx
mov edx, ecx
mov eax, 1
mov ebx, dword [ebp - 0xc4]
sub eax, ebx
movsx ecx, word [ebp - 0xd8]
mov dword [ebp - 0x78], edx
jmp 0x40f525
fld dword [0x447878]
fxch st(1)
fcomi st(1)
ja 0x411e5c
fstp st(0)
movsx edx, word [edi + eax + 1]
mov ebx, edx
sub edx, ecx
fld st(0)
mov dword [ebp - 0x58], edx
fimul dword [ebp - 0x58]
faddp st(2)
add dword [ebp - 0x6c], edx
mov dword [ebp - 0x58], eax
fimul dword [ebp - 0x58]
faddp st(2)
add eax, 2
cmp dword [ebp - 0x60], eax
je 0x411e7e
movsx ecx, bx
fld dword [esi + eax*2 - 2]
fld dword [0x447924]
fcompi st(1)
ja 0x40f4e6
fstp st(0)
fld dword [0x447874]
jmp 0x40f4f8
mov eax, dword [ebp - 0xb0]
mov dword [0x4520e4], eax
mov dword [ebp - 0xc0], 0
jmp 0x40f2fb
mov ecx, dword [edx + 0x70]
fld dword [edx + 0x6c]
fchs
mov eax, dword [edx + 0x68]
push dword [edx + 0x48]
mov dword [ebp - 0x118], edx
push 0
push 0
push ecx
push ecx
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push dword [ebp - 0x98]
push eax
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp + eax*4 - 0x48]
mov dword [ebp - 0x110], eax
add eax, 0x1000
push eax
mov eax, dword [ebp - 0x7c]
add eax, ebx
add eax, eax
add eax, eax
mov edi, dword [ebp - 0x70]
add eax, edi
push eax
call fcn.00415660
add esp, 0x30
mov edx, dword [ebp - 0x118]
jmp 0x40e91f
mov eax, dword [ebp - 0x64]
lea esi, [eax + eax]
jmp 0x40f3d1
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x40]
fldz
fstp dword [ebp - 0x190]
mov ebx, dword [ebp - 0x90]
lea edi, [ebx + ebx]
mov dword [ebp - 0x170], edi
fldz
fstp dword [ebp - 0x180]
test eax, eax
jne 0x40f813
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x411771
fld dword [0x447840]
fimul dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x64]
cmp eax, edi
jge 0x412d3c
add eax, eax
mov dword [ebp - 0x120], eax
add eax, eax
mov ebx, dword [ebp - 0xbc]
add eax, ebx
mov esi, dword [ebp - 0xd4]
lea ecx, [ebx + esi]
mov dword [ebp - 0x158], ecx
fldz
fld dword [0x447884]
mov edx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x90]
fld1
fsubp st(1)
fld dword [eax]
fsub st(3)
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
cmp edx, 2
jne 0x40f672
fld dword [eax + ebx*4]
fsub st(3)
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fadd st(1), st(0)
add eax, 4
cmp ecx, eax
jne 0x40f650
fstp st(0)
fstp st(1)
mov eax, dword [ebp - 0x84]
fld dword [eax + 0xf0]
fxch st(1)
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x88]
sub eax, edi
mov dword [ebp - 0x58], eax
fidiv dword [ebp - 0x58]
fsub st(1)
fst dword [ebp - 0x1a0]
fld dword [0x447894]
fcomi st(1)
ja 0x411778
fstp st(0)
fld dword [0x44788c]
fxch st(1)
fcomi st(1)
jbe 0x411b9d
fstp st(0)
fld dword [0x447888]
fxch st(1)
fstp dword [ebp - 0x1a0]
jmp 0x411788
fstp st(0)
fstp st(0)
fldz
fchs
fstp dword [ebp - 0xe0]
xor edi, edi
mov dword [ebp - 0x174], 0
fldz
fstp dword [ebp - 0x154]
jmp 0x40e877
cmp dword [ebp - 0xe4], 0x22
jg 0x40e7b3
jmp 0x40e7ad
fld dword [0x447854]
jmp 0x40e79a
test cl, 1
jne 0x412f7d
test edi, 2
jne 0x412f69
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40eb99
mov eax, ebx
neg eax
and eax, 3
lea esi, [ebx + eax]
mov eax, ecx
and eax, 0xfffffffe
add eax, eax
add eax, esi
mov dword [0x4520e4], eax
mov ebx, dword [ebp - 0x84]
push dword [ebx + 0x48]
push dword [ebp - 0x94]
push ecx
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.00421f30
push dword [ebx + 0x48]
lea edi, [ebp - 0x4c]
push edi
push 0x3d3
push dword [ebp - 0xa4]
push esi
lea eax, [esi + 0x800]
push eax
call fcn.00422140
mov eax, 0x400
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
add esp, 0x2c
push dword [ebx + 0x48]
push dword [ebx + 0x6c]
push dword [ebx + 0x68]
push edi
push dword [ebp - 0xa4]
push 0xf
push 0x400
push esi
call fcn.00425b78
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
cmp ecx, 0x3fe
jle 0x40f7d6
mov dword [ebp - 0x4c], 0x3fe
mov ecx, 0x3fe
fmul dword [str.333_]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x38]
cmp eax, 2
jle 0x40e75c
fld dword [0x447840]
fmul st(1), st(0)
cmp eax, 4
jle 0x40e75a
cmp eax, 8
jle 0x4130dc
fstp st(0)
fstp st(0)
fldz
jmp 0x40e75c
movss xmm3, dword [ebp - 0x180]
movss dword [ebp - 0x1a0], xmm3
mov eax, dword [ebp - 0x88]
add eax, eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xd4]
add eax, esi
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x410c43
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x410bc8
mov edi, dword [ebp - 0x98]
mov eax, edi
and eax, 1
mov byte [ebp - 0x10c], al
mov ecx, edi
and byte [ebp - 0x141], cl
or dword [ebp - 0x118], edi
mov edx, dword [0x4520e4]
mov eax, edx
neg eax
and eax, 3
lea esi, [edx + eax]
mov dword [ebp - 0xfc], esi
mov ebx, dword [ebp - 0x80]
mov eax, ebx
mov edi, dword [ebp - 0xa4]
imul eax, edi
add eax, eax
add eax, eax
add eax, esi
mov dword [0x4520e4], eax
push dword [ebp - 0x13c]
push ebx
push dword [ebp - 0x9c]
push dword [ebp - 0xe8]
push esi
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
call fcn.00419610
mov eax, ebx
shl eax, 4
sub eax, ebx
add esp, 0x1c
mov esi, dword [ebp - 0x11c]
cmp eax, esi
jg 0x40f8f6
mov ebx, dword [ebp - 0x88]
test ebx, ebx
je 0x4115c3
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x40]
test ecx, ecx
sete byte [ebp - 0x78]
mov dword [ebp - 0xf0], 0
mov ecx, dword [0x4520e4]
mov dword [ebp - 0x134], ecx
mov eax, ecx
neg eax
and eax, 3
mov dword [ebp - 0x1a4], eax
add ecx, eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0x170]
lea edi, [eax + eax]
mov dword [ebp - 0xb0], edi
lea eax, [ecx + edi]
mov edx, eax
neg edx
and edx, 3
mov dword [ebp - 0x194], edx
add eax, edx
mov dword [ebp - 0xc4], eax
add eax, edi
mov edx, eax
neg edx
and edx, 3
mov dword [ebp - 0x198], edx
add eax, edx
mov dword [ebp - 0xc0], eax
add eax, edi
mov ebx, dword [ebp - 0x84]
mov esi, dword [ebx + 0x34]
mov dword [ebp - 0x188], esi
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x18c], esi
mov esi, dword [ebp - 0xac]
mov esi, dword [esi + 0x38]
mov ebx, dword [ebx + 0x3c]
mov edx, eax
neg edx
and edx, 3
mov dword [ebp - 0x19c], edx
add eax, edx
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xf8]
add edx, eax
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0xf8]
add eax, edx
mov dword [0x4520e4], eax
push edi
push 0
push ecx
call sub.MSVCR80.DLL_memset
add esp, 0xc
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fa31
mov eax, 9
sub eax, ebx
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
lea edx, [eax + 5]
mov eax, 5
mov ecx, dword [ebp - 0x6c]
fild word [esi + eax*2 - 0xa]
fmul dword [0x447858]
fadd dword [0x447840]
fadd st(1)
fsub dword [eax*4 + 0x449d2c]
mov edi, eax
imul edi, eax
mov dword [ebp - 0x58], edi
fld dword [0x447930]
fimul dword [ebp - 0x58]
faddp st(1)
fstp dword [ecx + eax*4 - 0x14]
add eax, 1
cmp edx, eax
jne 0x40f9f8
fstp st(0)
mov ecx, dword [ebp - 0x158]
xor ebx, ebx
fld dword [0x447898]
xor esi, esi
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fa74
lea eax, [ebx + ebx]
add eax, eax
mov edx, dword [ebp - 0xbc]
add eax, edx
mov edx, dword [ebp - 0x6c]
fld dword [eax]
fsub dword [edx]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
add eax, 4
add edx, 4
cmp ecx, eax
jne 0x40fa5e
add esi, 1
add ecx, edi
mov eax, dword [ebp - 0x90]
add ebx, eax
cmp dword [ebp - 0x80], esi
jg 0x40fa47
mov esi, dword [0x4520e4]
mov dword [ebp - 0x58], esi
mov eax, esi
neg eax
and eax, 3
mov dword [ebp - 0x60], eax
lea ebx, [esi + eax]
mov edi, dword [ebp - 0xb0]
lea edx, [ebx + edi]
mov eax, edx
neg eax
and eax, 3
add edx, eax
lea eax, [edx + edi]
mov dword [0x4520e4], eax
mov esi, dword [ebp - 0x64]
test esi, esi
jle 0x412ac5
xor eax, eax
mov ecx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0x6c]
fld dword [ecx + eax*4]
fsub dword [edi + eax*4]
fstp dword [ebx + eax*4]
add eax, 1
cmp esi, eax
jne 0x40facc
cmp dword [ebp - 0x80], 2
je 0x41118a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x410c22
test al, 2
je 0x40fb01
movsw word es:[edi], word [esi]
test al, 1
je 0x40fb06
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x64], 1
je 0x412ffb
fld dword [ebx]
lea eax, [ebx + 4]
mov esi, dword [ebp - 0xd4]
lea ecx, [ebx + esi]
fld dword [eax]
fxch st(1)
fsub dword [0x4478b8]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [eax]
add eax, 4
cmp ecx, eax
jne 0x40fb1e
fstp st(0)
mov eax, dword [ebp - 0x64]
lea esi, [eax - 2]
mov dword [ebp - 0xd8], esi
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0xd4]
add eax, edi
mov edi, dword [ebp - 0x60]
add eax, edi
fld dword [eax - 4]
mov eax, esi
fld dword [ebx + eax*4]
fxch st(1)
fsub dword [0x44788c]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [ebx + eax*4]
sub eax, 1
jae 0x40fb5c
fldz
fld dword [0x447934]
fsubr st(2)
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fxch st(1)
xor esi, esi
mov edi, 0x20
mov dword [ebp - 0x70], ebx
fstp dword [ebp - 0xa8]
mov ebx, esi
mov esi, edx
mov eax, dword [ebp - 0x70]
fld dword [eax + ebx*4]
fxch st(1)
fucomi st(1)
fxch st(1)
fcmovnbe st(0), st(1)
fxch st(1)
fstp dword [ebp - 0x60]
fsubr dword [esi + ebx*4]
fadd dword [0x447840]
sub esp, 4
fstp dword [esp]
call fcn.004190dc
pop eax
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
mov edx, 1
cmp ecx, 0xfffffffb
fld dword [ebp - 0x60]
jl 0x40fbed
cmp dword [ebp - 0x11c], 0x32
setg al
test byte [ebp - 0x108], al
je 0x40fc22
cmp byte [ebp - 0x78], 0
jne 0x4111c1
mov edi, dword [ebp - 0x88]
mov eax, edi
mov esi, dword [ebp - 0x64]
cmp edi, esi
jge 0x40fc48
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x64]
mov dword [edx + eax*4], 0xd
add eax, 1
cmp ecx, eax
jne 0x40fc3a
xor esi, esi
mov eax, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xb0]
lea ebx, [eax + edi]
mov dword [0x4520e4], ebx
mov eax, ebx
neg eax
and eax, 3
add eax, ebx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xf0]
test eax, eax
jne 0x410c78
test byte [ebp - 0xe0], 1
je 0x40fc92
cmp byte [ebp - 0x164], 0
jne 0x41290f
cmp dword [ebp - 0x11c], 0xe
jg 0x40fce1
cmp byte [ebp - 0x164], 0
je 0x40fce1
mov ebx, dword [ebp - 0xdc]
mov eax, ebx
mov edi, dword [ebp - 0xd4]
lea edx, [ebx + edi]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jle 0x40fd08
mov ebx, dword [ebp - 0x68]
bsr eax, dword [ebx + 0x1c]
not eax
add eax, dword [ebx + 0x14]
add eax, 2
mov esi, dword [ebp - 0x100]
cmp eax, esi
jl 0x4115f5
mov ebx, dword [ebp - 0x98]
mov eax, ebx
and eax, 1
mov byte [ebp - 0x10c], al
and byte [ebp - 0x141], bl
or dword [ebp - 0x118], ebx
jmp 0x40f880
test dl, 1
jne 0x412f3c
test edi, 2
jne 0x412f55
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40fafb
mov ebx, dword [ebp - 0xf8]
mov eax, ebx
mov ecx, dword [ebp - 0x148]
mov edi, ecx
mov esi, dword [ebp - 0xbc]
cmp ebx, 4
jae 0x411b4b
test al, 2
jne 0x411aa2
test al, 1
je 0x40f853
movsb byte es:[edi], byte [esi]
jmp 0x40f853
mov eax, 0x5000
xor edx, edx
idiv dword [ebp - 0x11c]
mov edx, 0x4e
cmp eax, edx
cmovl eax, edx
add eax, 2
mov dword [ebp - 0xe0], eax
fld dword [ebp - 0x150]
fsubr dword [0x447840]
fld dword [0x447954]
fcompi st(1)
ja 0x411a92
fmul dword [0x447958]
fstp dword [ebp - 0x78]
mov eax, dword [ebp - 0x9c]
lea edi, [eax + eax]
mov dword [ebp - 0x164], edi
lea eax, [edi + edi]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x18c], eax
lea edx, [ecx + eax]
mov ecx, edx
neg ecx
mov eax, ecx
and eax, 3
lea ecx, [edx + eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0xac]
mov edx, dword [edx + 0x20]
movsx ecx, word [edx + edi]
movsx eax, word [edx + edi - 2]
sub ecx, eax
mov edi, ecx
movzx ecx, byte [ebp - 0x8c]
shl edi, cl
mov eax, edi
add eax, edi
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x60]
lea edi, [eax + ecx]
mov eax, edi
neg eax
and eax, 3
add edi, eax
mov dword [ebp - 0x188], edi
add ecx, edi
mov edi, ecx
neg edi
mov eax, edi
and eax, 3
add ecx, eax
mov dword [ebp - 0x148], ecx
mov edi, dword [ebp - 0x18c]
add ecx, edi
mov eax, ecx
neg eax
and eax, 3
add ecx, eax
mov dword [ebp - 0x14c], ecx
mov eax, edi
add eax, ecx
mov dword [0x4520e4], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
jle 0x412091
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xa4]
imul ecx, eax
mov dword [ebp - 0x158], ecx
xor eax, eax
mov ecx, dword [ebp - 0x98]
test ecx, ecx
mov edi, dword [ebp - 0x8c]
cmovne eax, edi
mov dword [ebp - 0x58], eax
mov eax, edi
neg eax
lea ecx, [eax + eax]
mov dword [ebp - 0x1b8], ecx
fild dword [ebp - 0x58]
fstp dword [ebp - 0x168]
mov eax, dword [ebp - 0x60]
and eax, 1
mov dword [ebp - 0x1b0], eax
lea eax, [edi + 1]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1c4], esi
fstp dword [ebp - 0x1c8]
mov ecx, edx
xor edx, edx
lea eax, [edx + 2]
mov dword [ebp - 0x108], eax
movsx eax, word [ecx + edx]
movsx ecx, word [ecx + edx + 2]
sub ecx, eax
mov esi, ecx
mov dword [ebp - 0xd8], ecx
mov edi, ecx
movzx ecx, byte [ebp - 0x8c]
shl edi, cl
mov dword [ebp - 0x58], edi
xor ecx, ecx
cmp esi, 1
sete cl
mov dword [ebp - 0x6c], ecx
lea ecx, [edi + edi]
lea ebx, [ecx + ecx]
movzx ecx, byte [ebp - 0x8c]
shl eax, cl
mov edi, dword [ebp - 0x158]
add eax, edi
add eax, eax
add eax, eax
mov edi, dword [ebp - 0xfc]
lea ecx, [edi + eax]
mov eax, ebx
mov edi, dword [ebp - 0x60]
mov esi, ecx
cmp ebx, 4
jae 0x41202c
xor esi, esi
jmp 0x40e5f1
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb0]
lea ecx, [eax + esi]
xor eax, eax
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x6c]
fld dword [ebx + eax*4]
fld dword [ecx + eax*4]
fsub dword [edi + eax*4]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [ebx + eax*4]
add eax, 1
cmp esi, eax
jne 0x4111a1
jmp 0x40fae6
mov eax, dword [ebp - 0xd4]
lea edi, [eax - 8]
mov dword [ebp - 0x108], edi
lea esi, [eax - 4]
mov dword [ebp - 0x114], esi
mov ecx, dword [ebp - 0x148]
mov ebx, dword [ebp - 0xdc]
mov dword [ebp - 0xa8], ebx
lea esi, [ebx + eax]
mov eax, dword [ebp - 0xd8]
add eax, eax
add eax, eax
add eax, ebx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x170]
add eax, eax
lea edi, [eax + eax]
mov eax, dword [ebp - 0x1a4]
lea ebx, [eax + edi]
mov eax, dword [ebp - 0xb0]
add eax, ebx
mov edx, dword [ebp - 0x194]
add eax, edx
mov edx, dword [ebp - 0x198]
add eax, edx
mov edx, dword [ebp - 0x19c]
add eax, edx
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0xb0]
sub ebx, eax
mov eax, ebx
add eax, edi
mov edx, dword [ebp - 0x194]
add eax, edx
mov edx, dword [ebp - 0x198]
add eax, edx
mov edx, dword [ebp - 0x19c]
add eax, edx
mov edi, dword [ebp - 0x134]
add eax, edi
mov dword [ebp - 0x14c], eax
mov edi, esi
mov dword [ebp - 0x58], 0
xor ebx, ebx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x1b0], esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x78], edi
mov edx, dword [ebp - 0xa8]
fld dword [ecx]
fstp dword [edx]
cmp esi, 1
jle 0x4112d9
mov eax, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x58]
fld dword [eax + edi*4]
mov eax, 1
fld dword [ecx + eax*4]
fld dword [0x447840]
fadd dword [ecx + eax*4 - 4]
fxch st(1)
fucomi st(1)
fstp st(1)
fxch st(1)
cmova ebx, eax
fadd dword [0x447938]
fxch st(1)
fcomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fst dword [edx + eax*4]
add eax, 1
cmp esi, eax
jne 0x4112a7
fstp st(0)
lea eax, [ebx - 1]
mov dword [ebp - 0xa8], eax
test ebx, ebx
je 0x41132c
mov edi, dword [ebp - 0x58]
add edi, ebx
add edi, edi
add edi, edi
mov eax, dword [ebp - 0x134]
add edi, eax
mov eax, dword [ebp - 0x148]
fld dword [edi + eax]
mov eax, dword [ebp - 0xa8]
fld dword [edx + eax*4]
fld dword [0x4478b8]
faddp st(2)
fld dword [ecx + eax*4]
fucomi st(2)
fcmovnbe st(0), st(2)
fstp st(2)
fxch st(1)
fucomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fst dword [edx + eax*4]
sub eax, 1
jae 0x411306
fstp st(0)
lea edi, [edx + 8]
lea eax, [ecx + 4]
cmp dword [ebp - 0xd8], 2
jle 0x4113e0
mov dword [ebp - 0xa8], esi
mov esi, dword [ebp - 0x70]
jmp 0x411374
fld dword [ecx + 4]
fld dword [ecx]
fcomi st(1)
jbe 0x4113eb
mov edi, dword [ebp - 0x84]
mov edx, dword [edi + 0x40]
test edx, edx
sete byte [ebp - 0x78]
movzx eax, byte [ebp - 0x78]
mov dword [ebp - 0xf0], 0
cmp dword [edi + 0x18], 1
jle 0x40f90f
mov dword [ebp - 0xf0], eax
jmp 0x40f90f
mov edi, dword [ebp - 0x98]
test edi, edi
jne 0x411c58
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 4
jle 0x411e43
mov edi, dword [ebp - 0x114]
or edi, dword [eax + 0x40]
jne 0x411e43
push dword [ebp - 0x80]
push dword [ebp - 0x64]
push 0
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xbc]
call fcn.00421da0
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x411e43
mov edi, dword [ebp - 0x84]
push dword [edi + 0x48]
push dword [edi + 0x1c]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
mov ebx, dword [ebp - 0x80]
push ebx
push dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0xac]
mov eax, esi
call fcn.004164f0
push dword [edi + 0x48]
push dword [ebp - 0x8c]
push ebx
push dword [ebp - 0x9c]
mov edi, dword [ebp - 0xe8]
push edi
push dword [ebp - 0xa8]
push esi
call fcn.00415a68
add esp, 0x34
push ebx
push dword [ebp - 0xbc]
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push esi
call fcn.0040bb90
add esp, 0x18
mov esi, dword [ebp - 0x160]
test esi, esi
jle 0x4116f9
fld dword [0x447840]
fimul dword [ebp - 0x8c]
mov eax, dword [ebp - 0x148]
fld dword [eax]
fadd st(1)
fstp dword [eax]
add eax, 4
cmp dword [ebp - 0xb0], eax
jne 0x4116e6
fstp st(0)
mov edi, dword [ebp - 0x68]
bsr eax, dword [edi + 0x1c]
not eax
add eax, dword [edi + 0x14]
add eax, 2
mov esi, dword [ebp - 0x100]
cmp eax, esi
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x10c], 1
jl 0x4133ee
fld dword [0x447850]
fstp dword [ebp - 0x150]
mov dword [ebp - 0x98], 1
jmp 0x40f880
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
jmp 0x40f1ab
fldz
jmp 0x40f60d
fstp st(1)
fld dword [0x447890]
fxch st(1)
fstp dword [ebp - 0x1a0]
faddp st(1)
mov eax, dword [ebp - 0x84]
fstp dword [eax + 0xf0]
jmp 0x40f845
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x60]
imul esi, eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0xd8], 1
jmp 0x40e2c9
mov ecx, dword [ebp - 0x60]
imul eax, ecx
mov edx, eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x80]
lea eax, [ecx + ecx]
mov dword [ebp - 0x17c], eax
add eax, eax
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
add eax, 0x14
mov dword [ebp - 0x1b4], eax
mov esi, dword [ebp - 0x70]
imul esi, eax
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
mov eax, ecx
sar eax, 4
add eax, edx
sar ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x138], eax
sar eax, 6
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0xcc]
lea eax, [ecx + ecx]
mov dword [ebp - 0x128], eax
add eax, ecx
add eax, eax
add eax, eax
add eax, eax
add eax, ecx
shl eax, 4
movzx ecx, byte [ebp - 0x15c]
sar eax, cl
sub eax, esi
jmp 0x40e36f
fldz
fstp dword [ebp - 0x180]
movss xmm1, dword [ebp - 0x180]
movss dword [ebp - 0x190], xmm1
movss dword [ebp - 0x1a0], xmm1
mov eax, dword [ebp - 0x90]
add eax, eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xd4]
add eax, ebx
mov dword [ebp - 0x158], eax
jmp 0x40f845
fstp st(0)
fld dword [0x4478ac]
fstp dword [ebp - 0x78]
jmp 0x410cbb
movsw word es:[edi], word [esi]
test al, 1
je 0x40f853
jmp 0x410c72
cmp dword [eax + 0x18], 4
setg al
movzx eax, al
mov esi, eax
jmp 0x40e5f1
and ecx, 1
jne 0x4130e3
test edi, 2
jne 0x413159
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x410c6a
jmp 0x411aa2
fstp st(1)
fmul dword [0x44792c]
jmp 0x411788
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x10c], 1
push 3
push dword [ebp - 0x98]
push dword [ebp - 0x68]
call fcn.00418414
add esp, 0xc
jmp 0x40f880
mov eax, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0xcc], eax
push eax
push dword [ebp - 0x68]
call fcn.004188c4
pop eax
pop edx
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp - 0xcc]
add eax, eax
mov dword [ebp - 0x128], eax
jmp 0x40e3d3
xor ebx, ebx
fld dword [0x447858]
jmp 0x40ec8b
mov byte [ebp - 0x141], 0
jmp 0x411c6b
fstp st(1)
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40f4f8
fmul dword [0x447840]
jmp 0x40f4f8
mov edx, dword [ebp - 0x78]
add edx, 1
mov eax, dword [ebp - 0xdc]
add esi, eax
cmp dword [ebp - 0x80], edx
jne 0x40f4cd
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
fxch st(2)
fmul dword [0x447928]
fxch st(1)
fdivrp st(2)
fxch st(1)
fadd dword [0x447850]
fxch st(1)
lea ecx, [edx - 1]
mov esi, dword [ebp - 0x80]
imul ecx, esi
mov esi, dword [ebp - 0x60]
imul ecx, esi
imul ecx, edx
mov dword [ebp - 0x58], ecx
fidiv dword [ebp - 0x58]
fmul dword [0x447840]
fld dword [0x44787c]
fcomi st(1)
jbe 0x412c41
fstp st(0)
fld dword [0x447880]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
mov ebx, dword [ebp - 0xd0]
movzx esi, word [ebx + edx*2]
mov ecx, esi
shr cx, 0xf
add ecx, esi
sar cx, 1
xor esi, esi
cmp cx, word [ebx + 2]
jle 0x411f1d
add esi, 1
cmp word [ebx + esi*2 + 2], cx
jl 0x411f13
mov ecx, esi
neg ecx
mov dword [ebp - 0x78], ecx
mov edi, edx
sub edi, esi
mov dword [ebp - 0x58], edi
lea edi, [esi + esi]
lea ebx, [edi + edi]
mov edi, dword [ebp - 0xf0]
add edi, ebx
mov ecx, dword [ebp - 0x90]
add esi, ecx
add esi, esi
add esi, esi
mov ecx, dword [ebp - 0xf0]
add esi, ecx
mov ecx, dword [ebp - 0x168]
add ebx, ecx
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0x6c], esi
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x78]
fld st(0)
mov dword [ebp - 0x58], ecx
fimul dword [ebp - 0x58]
fadd st(2)
fld dword [edi + ecx*4]
cmp ebx, 2
jne 0x411f8a
mov esi, dword [ebp - 0x6c]
fld dword [esi + ecx*4]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fldz
fcomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fsubrp st(1)
fld dword [0x447924]
fxch st(1)
fcomi st(1)
jbe 0x411fad
fsubrp st(1)
mov esi, dword [ebp - 0x60]
fstp dword [esi + ecx*4]
add eax, 1
jmp 0x411fb1
fstp st(0)
fstp st(0)
add ecx, 1
cmp edx, ecx
jne 0x411f6a
mov edx, dword [ebp - 0xc4]
cmp eax, 2
jle 0x412002
fxch st(1)
fadd dword [0x447924]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x412f08
mov eax, dword [ebp - 0x168]
mov ecx, eax
add edx, edx
add edx, edx
add eax, edx
fld dword [0x447924]
fsubr dword [ecx]
fldz
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [ecx]
add ecx, 4
cmp eax, ecx
jne 0x411fe7
jmp 0x412004
fxch st(1)
fadd dword [0x447850]
fstp dword [ebp - 0x190]
fmul dword [0x447900]
fstp dword [ebp - 0x180]
jmp 0x40f5f3
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x58], eax
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x98]
lea edi, [eax + eax]
mov dword [ebp - 0x114], edi
test eax, eax
mov eax, 0
cmove eax, dword [ebp - 0xe0]
mov dword [ebp - 0x10c], eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x8c]
lea edx, [eax + eax]
lea eax, [edx + edx]
add eax, edi
add eax, eax
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18c]
add edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x158], ebx
mov ebx, ecx
mov dword [ebp - 0x164], esi
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x168], edx
movsx eax, byte [ecx + 0x450e00]
add eax, eax
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x7c]
mov edx, edi
sub edx, eax
mov eax, edx
neg eax
cmovs eax, edx
mov esi, dword [ebp - 0x78]
imul esi, eax
movsx eax, byte [ecx + 0x450e01]
lea edx, [eax + eax]
mov dword [ebp - 0x6c], edx
sub edi, edx
mov edx, edi
mov eax, edi
neg eax
cmovns edx, eax
mov eax, dword [ebp - 0x78]
imul edx, eax
mov eax, dword [ebp - 0x10c]
add edx, eax
cmp dword [ebp - 0x9c], 1
jle 0x4121dc
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor ecx, ecx
test bl, 1
jne 0x4130b7
test edi, 2
jne 0x413084
mov edx, dword [ebp - 0x58]
and edx, 0xfffffffc
xor eax, eax
mov dword [edi + eax], ecx
add eax, 4
cmp eax, edx
jb 0x4125f6
add edi, eax
test byte [ebp - 0x58], 2
jne 0x412e78
test byte [ebp - 0x58], 1
jne 0x412df3
fldz
fld st(0)
jmp 0x40ee13
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x40ed86
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x40ed7a
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40e6db
movzx eax, byte [esi]
mov byte [ebp - 0xfc], al
mov byte [ebx], al
lea edi, [ebx + 1]
lea esi, [esi + 1]
mov eax, 0xfff
jmp 0x40e6cf
mov esi, dword [ebp - 0x84]
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebp - 0xd8]
shl eax, cl
mov dword [ebp - 0x60], eax
fld1
fidiv dword [ebp - 0x60]
push 0xf
fcomi st(1)
fxch st(1)
fstp dword [ebp - 0x6c]
fstp dword [ebp - 0x60]
setae al
movzx eax, al
push eax
push dword [ebp - 0x68]
call fcn.00418414
add esp, 0xc
fld dword [ebp - 0x6c]
fld dword [ebp - 0x60]
fcompi st(1)
jae 0x412ba2
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x12c], 0
jmp 0x40e50d
push 0x1d4c0
call sub.MSVCR80.DLL_malloc
mov dword [ebp - 0x140], eax
mov dword [0x4520e8], eax
pop ecx
jmp 0x40e0c0
mov edi, dword [ebp - 0x64]
test edi, edi
jle 0x40fd08
fldz
fstp dword [ebp - 0x190]
mov edi, dword [ebp - 0x90]
lea esi, [edi + edi]
mov dword [ebp - 0x170], esi
jmp 0x40f5e3
fstp st(0)
push ecx
push ecx
fst qword [esp]
fstp qword [ebp - 0x60]
call sub.MSVCR80.DLL_sqrt
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fsub dword [0x447908]
pop ebx
pop esi
fldz
fcompi st(1)
fstp st(0)
ja 0x40ef8e
fld qword [ebp - 0x60]
push eax
push eax
fstp qword [esp]
call sub.MSVCR80.DLL_sqrt
pop eax
pop edx
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fsub dword [0x447908]
fld dword [0x44790c]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x41342d
fstp st(0)
fld qword [0x447868]
fsqrt
fstp dword [ebp - 0x150]
jmp 0x40f15f
fldz
fchs
jmp 0x40e4d4
fldz
fchs
fxch st(1)
jmp 0x40e487
push 1
push 0
push dword [ebp - 0x68]
call fcn.00418414
mov edx, dword [0x4520e4]
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0xa8], eax
add esp, 0xc
jmp 0x40ec2c
movzx eax, al
mov dword [ebp - 0x98], eax
jmp 0x40ef4a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x412fb0
test al, 2
je 0x412ae0
movsw word es:[edi], word [esi]
test al, 1
je 0x412ae5
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x64]
sub eax, 2
mov dword [ebp - 0xd8], eax
jmp 0x40fc06
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40ea09
movzx eax, byte [ebx]
mov byte [ecx], al
add edi, 1
add esi, 1
mov eax, 0xfff
jmp 0x40e9fd
mov ecx, dword [ebp - 0x138]
test ecx, ecx
jle 0x412f9d
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 1]
mov esi, dword [ebp - 0xcc]
cmp eax, esi
jl 0x412dd2
fstp dword [ebp - 0x58]
mov esi, dword [ebp - 0xcc]
push esi
push dword [ebp - 0x68]
call fcn.004188c4
pop eax
pop edx
mov byte [ebp - 0x98], 0
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0xe4], 2
fld dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
bsr eax, dword [ecx + 0x1c]
add eax, 1
mov esi, dword [ebp - 0x100]
add eax, esi
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0xd8], esi
jmp 0x40e50d
movzx eax, byte [esi]
mov byte [ebp - 0x110], al
mov byte [ecx], al
add edi, 1
add esi, 1
mov eax, dword [ebp - 0x6c]
sub eax, 1
jmp 0x40efd0
fstp st(1)
jmp 0x411ef6
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f024
movzx eax, byte [esi]
mov byte [ebp - 0xfc], al
mov byte [ebx + 0x1000], al
lea edi, [ebx + 0x1001]
lea esi, [esi + 1]
mov eax, dword [ebp - 0x104]
sub eax, 1
jmp 0x40f018
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f000
movzx eax, byte [ecx]
mov byte [ebp - 0x98], al
mov byte [edi], al
add edi, 1
add esi, 1
mov eax, dword [ebp - 0x6c]
sub eax, 1
jmp 0x40eff4
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40efdc
mov byte [ebp - 0x108], 0
mov byte [ebp - 0x141], 0
mov dword [ebp - 0x13c], 1
mov dword [ebp - 0x70], 0x15e
mov dword [ebp - 0x15c], 3
mov dword [ebp - 0x8c], 0
jmp 0x40e1cf
fstp st(0)
fldz
mov eax, dword [ebp - 0x88]
add eax, eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xd4]
add eax, edi
mov dword [ebp - 0x158], eax
jmp 0x40f67f
add ecx, 2
mov dword [ebp - 0xcc], ecx
lea eax, [ecx + ecx]
mov dword [ebp - 0x128], eax
add eax, eax
add eax, eax
mov dword [ebp - 0x100], eax
jmp 0x412bc4
mov eax, ecx
stosb byte es:[edi], al
jmp 0x412616
mov eax, ecx
stosw word es:[edi], ax
jmp 0x41260c
fstp st(0)
xor esi, esi
mov dword [ebp - 0x98], 0
fld qword [0x447860]
fldz
fld st(0)
fcomi st(2)
ja 0x41349d
fstp st(1)
fucompi st(1)
ja 0x413477
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], esi
jmp 0x412a4c
fstp st(0)
fstp st(0)
lea eax, [edx + edx]
add eax, eax
push eax
push 0
push dword [ebp - 0x168]
call sub.MSVCR80.DLL_memset
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x40]
add esp, 0xc
fld dword [0x447850]
fstp dword [ebp - 0x190]
jmp 0x40f5e3
movzx eax, byte [ebx]
mov byte [edx], al
lea edi, [edx + 1]
lea esi, [ebx + 1]
mov eax, dword [ebp - 0xd4]
sub eax, 1
jmp 0x410c2b
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x410c37
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f734
movzx eax, byte [ebx + 0x1000]
mov byte [ecx], al
add edi, 1
lea esi, [ebx + 0x1001]
mov eax, dword [ebp - 0x104]
sub eax, 1
jmp 0x40f728
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
jmp 0x412bf2
test dl, 1
jne 0x4134cf
test edi, 2
jne 0x4134bb
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x412ada
mov dword [ebp - 0xd8], 0xffffffff
jmp 0x40fb79
mov eax, ecx
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x4125ee
fldz
fld st(0)
fld st(1)
fxch st(1)
fxch st(2)
fxch st(1)
mov esi, dword [ebp - 0x90]
lea edi, [esi + esi]
mov dword [ebp - 0x170], edi
lea ebx, [edx + 1]
mov dword [ebp - 0x60], ebx
jmp 0x411eae
mov eax, ecx
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x4125e2
fmulp st(1)
jmp 0x40e75c
movzx eax, byte [esi]
mov byte [ebp - 0x58], al
mov byte [edi], al
add edi, 1
lea esi, [esi + 1]
mov eax, dword [ebp - 0xf8]
sub eax, 1
jmp 0x411b54
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x411b60
mov dword [ebp - 0x98], 1
fld dword [0x447850]
fstp dword [ebp - 0x150]
jmp 0x411c6b
fmul dword [0x447910]
fld qword [0x447918]
fsubp st(1)
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xe0], eax
jmp 0x412ea8
push ebx
push ebx
fstp qword [esp]
call sub.MSVCR80.DLL_sqrt
fstp dword [ebp - 0x150]
pop edi
pop eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], esi
jmp 0x40f15f
fstp st(0)
fstp st(1)
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], esi
fstp dword [ebp - 0x150]
jmp 0x40f15f
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x412fc5
movzx eax, byte [ebx]
mov byte [edx], al
add edi, 1
add esi, 1
mov eax, dword [ebp - 0xd4]
sub eax, 1
jmp 0x412fb9
fxch st(2)
fstp qword [ebp - 0xf0]
fstp dword [ebp - 0xdc]
fxch st(1)
fstp dword [ebp - 0x58]
sub esp, 8
fstp qword [esp]
call sub.MSVCR80.DLL_sqrt
pop eax
pop edx
fld qword [ebp - 0xf0]
fld dword [ebp - 0xdc]
fld dword [ebp - 0x58]
fxch st(3)
jmp 0x40ee29