Function at 0x40e430
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 [0x4534ec]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x412cc4
mov eax, dword [ebp - 0x140]
mov dword [0x4534ec], 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 0x40e539
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 0x40e539
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xa4], eax
cmp ecx, eax
je 0x413096
xor ecx, ecx
mov dword [ebp - 0x60], ebx
jmp 0x40e532
mov ebx, eax
shl ebx, cl
cmp ebx, esi
je 0x40e555
add ecx, 1
cmp ecx, edx
jle 0x40e52a
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 0x40ee27
push ecx
call fcn.00419118
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 0x40ee0f
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 0x40e699
add esi, eax
cmp dword [ebp - 0x6c], 0xffffffff
je 0x40ee71
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 0x40eee5
mov eax, dword [ebp - 0x138]
test eax, eax
jle 0x40e7a3
mov ecx, dword [ebp - 0x84]
mov esi, dword [ecx + 0x34]
test esi, esi
je 0x40e7a3
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 0x41214f
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 [0x4534ec]
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 [0x4534ec], 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 0x412e53
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 0x40e832
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 0x412e4a
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 0x40e881
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 0x412c5f
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 0x40e914
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40e933
fld dword [0x44648c]
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.00414010
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 0x40e911
mov eax, dword [eax + 0x40]
test eax, eax
je 0x40e981
cmp byte [ebp - 0x98], 0
jne 0x40e99c
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 0x40e9c1
mov esi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x114]
or esi, eax
jne 0x411547
mov eax, dword [ebp - 0x84]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x411e81
mov edi, dword [ebp - 0x84]
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x124], eax
mov eax, dword [0x4534ec]
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 [0x4534ec], 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 0x412c44
test edi, 2
jne 0x412c30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40eab8
movsw word es:[edi], word [esi]
test al, 1
je 0x40eabd
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 0x40f3dc
test al, 2
je 0x40eadd
movsw word es:[edi], word [esi]
test al, 1
je 0x40eae2
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 0x40ea85
mov esi, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xf8]
test esi, esi
jne 0x40fb10
mov dword [ebp - 0x4c], 0xf
mov ecx, 0xf
fldz
jmp 0x40eb2c
fstp st(0)
mov eax, dword [ebp - 0x84]
mov esi, dword [eax + 0x78]
test esi, esi
je 0x40eb3f
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 0x40fae4
fld dword [0x446498]
cmp dword [ebp - 0xe4], 0x18
jg 0x40fad2
fadd dword [0x44651c]
fadd dword [0x44651c]
mov eax, dword [ebp - 0x84]
fld dword [0x44649c]
fld dword [eax + 0x6c]
fcomi st(1)
fstp st(1)
jbe 0x40eba2
fxch st(1)
fsub dword [0x44651c]
fxch st(1)
fld dword [0x446520]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40ebba
fxch st(1)
fsub dword [0x44651c]
fxch st(1)
fld dword [0x446498]
fxch st(2)
fcomi st(2)
fcmovbe st(0), st(2)
fstp st(2)
fxch st(1)
fcompi st(2)
ja 0x40faab
fld st(1)
fsub st(1)
fabs
fld dword [0x44651c]
fcompi st(1)
fstp st(0)
fcmovbe st(0), st(1)
fstp st(1)
fmul dword [0x446524]
fdiv dword [0x4464d4]
fadd dword [0x446488]
sub esp, 4
fstp dword [esp]
call fcn.004195ac
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 [0x446528]
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 0x40f397
test al, 2
je 0x40ecdc
movsw word es:[edi], word [esi]
test al, 1
je 0x40ece1
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x98]
test ecx, ecx
jne 0x40f927
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.00415a30
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 0x40f3b8
test al, 2
je 0x40ed89
movsw word es:[edi], word [esi]
test al, 1
je 0x40ed8e
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 0x40ef02
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 0x412f17
test edi, 2
jne 0x412f03
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40ede6
movsw word es:[edi], word [esi]
test al, 1
je 0x40edeb
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x58], 1
sbb eax, eax
add eax, 2
cmp dword [ebp - 0x94], eax
jle 0x40ef7c
mov esi, dword [edx + 0x68]
mov dword [ebp - 0x58], 1
jmp 0x40ec71
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x40ee71
mov ecx, dword [ebp - 0x60]
imul eax, ecx
mov edx, eax
jmp 0x411d69
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 0x411ba2
cmp eax, 0xffffffff
jne 0x411d3a
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 0x40e7a3
push dword [ebp - 0xcc]
push dword [ebp - 0x78]
lea esi, [ebp - 0x40]
push esi
call fcn.00418cb0
add esp, 0xc
mov dword [ebp - 0x68], esi
jmp 0x40e75a
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 0x40faef
test al, 2
je 0x40ef6f
movsw word es:[edi], word [esi]
test al, 1
je 0x40ef74
movsb byte es:[edi], byte [esi]
add esp, 0xc
jmp 0x40edeb
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf0]
mov dword [0x4534ec], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x16c], eax
fld dword [0x44649c]
fld dword [ebp - 0x154]
fcompi st(1)
ja 0x40f400
mov eax, dword [ebp - 0x84]
fld dword [eax + 0x6c]
fcompi st(1)
fstp st(0)
ja 0x40f402
mov dword [ebp - 0x1a8], 0
jmp 0x40efcd
fstp st(0)
fstp st(0)
mov eax, dword [ebp - 0x174]
test eax, eax
jne 0x40f472
mov esi, dword [ebp - 0x88]
test esi, esi
jne 0x40effc
mov eax, dword [ebp - 0xd8]
add eax, 0xf
mov ebx, dword [ebp - 0x100]
cmp eax, ebx
jl 0x412e5e
mov edi, dword [ebp - 0x84]
mov ebx, dword [edi + 0x18]
test ebx, ebx
jle 0x40f50c
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xe0], eax
test eax, eax
jne 0x40f50c
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x60]
add eax, esi
cmp dword [ebp - 0x11c], 0xe
jg 0x41217e
cmp byte [ebp - 0x164], 0
je 0x41217e
cmp dword [edi + 0xb8], 2
je 0x41217e
mov ebx, 1
fld dword [0x4464a4]
mov dword [0x4534ec], 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 0x413264
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 0x41299e
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 [0x446488]
fmul st(2)
fsubp st(3)
fxch st(1)
fstp dword [edx]
add eax, 4
add edx, 4
cmp ecx, eax
jne 0x40f10c
fstp st(0)
fstp st(0)
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor eax, eax
test bl, 1
jne 0x412c23
test edi, 2
jne 0x412c18
mov ecx, dword [ebp - 0x58]
and ecx, 0xfffffffc
xor edx, edx
mov dword [edi + edx], eax
add edx, 4
cmp edx, ecx
jb 0x40f15e
add edi, edx
test byte [ebp - 0x58], 2
je 0x40f172
stosw word es:[edi], ax
test byte [ebp - 0x58], 1
je 0x40f179
stosb byte es:[edi], al
cmp dword [ebp - 0x78], 1
je 0x4129e6
xor eax, eax
fldz
fld st(0)
mov edx, dword [ebp - 0xc0]
jmp 0x40f193
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 0x40f191
fstp st(0)
mov eax, dword [ebp - 0xc4]
fldz
fld st(0)
jmp 0x40f1c6
fxch st(1)
fld dword [ebx + eax*4]
fsub st(1)
fmul dword [0x4464bc]
faddp st(1)
fst dword [ebx + eax*4]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
sub eax, 1
jae 0x40f1c4
fstp st(1)
fmulp st(1)
fmul dword [0x446488]
fmul st(2)
fldz
fucompi st(1)
ja 0x4138b8
fsqrt
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fadd dword [0x4464b8]
fdivr st(1)
cmp dword [ebp - 0x78], 0x23
jle 0x40f2a9
fmul dword [0x446548]
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 [0x4464b8]
fadd dword [ebx + edx*4]
fmul st(1)
fldcw word [ebp - 0x54]
frndint
fldcw word [ebp - 0x52]
mov ecx, 2
fld dword [0x44654c]
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x40f271
mov ecx, 0xff
fldz
fcompi st(1)
ja 0x40f275
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + 0x44a560]
jmp 0x40f277
fstp st(0)
jmp 0x40f277
fstp st(0)
add eax, ecx
add edx, 4
cmp edx, esi
jl 0x40f22f
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 0x40f2ab
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 0x40f0e6
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 0x412e87
test al, al
je 0x412e87
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 0x412dbe
fxch st(1)
fsqrt
fst dword [ebp - 0x58]
fld dword [ebp - 0x58]
fsub dword [0x446550]
fxch st(2)
fcompi st(2)
fstp st(1)
jbe 0x412df6
fstp st(0)
fldz
fstp dword [ebp - 0x150]
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x40f53d
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 1
jmp 0x40f57b
test cl, 1
jne 0x412ff5
test edi, 2
jne 0x413082
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ecd6
test edi, 1
jne 0x413066
test edi, 2
jne 0x413052
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ed83
test edi, 1
jne 0x41302c
test edi, 2
jne 0x413018
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ead7
fstp st(0)
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x78]
test edx, edx
je 0x40f422
fld qword [str.333333]
fld dword [eax + 0x7c]
fcompi st(1)
fstp st(0)
jbe 0x40efbd
fild dword [ebp - 0x16c]
mov eax, dword [ebp - 0x84]
fild dword [eax + 0x68]
fld qword [0x446538]
fmul st(1)
fxch st(2)
mov dword [ebp - 0x1a8], 1
fcomi st(2)
fstp st(2)
ja 0x40efc9
fmul qword [0x446540]
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 0x40efdb
push 1
push 1
push dword [ebp - 0x68]
call fcn.004188e4
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.00418dc4
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.00418954
add esp, 0x24
push 3
push edi
push ebx
call fcn.00418954
push 2
push 0x44fb04
push dword [ebp - 0x124]
push ebx
call fcn.00418c14
mov edx, dword [0x4534ec]
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 0x40f00d
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 0x40f374
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 0x411b1e
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 0x40f90d
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 7
jle 0x40f90d
mov eax, dword [ebp - 0xb0]
mov dword [0x4534ec], 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.004168c0
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.00415e38
add esp, 0x34
push edi
push dword [ebp - 0x148]
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push ebx
call fcn.0040bf60
add esp, 0x18
mov edi, dword [ebp - 0x160]
test edi, edi
jle 0x40f6c1
fld dword [0x446488]
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 0x40f6b2
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.004168c0
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.00415e38
add esp, 0x1c
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x40f988
cmp dword [ebp - 0x64], 2
jle 0x40f988
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 [0x446568]
fmul dword [ecx]
fucomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fld dword [0x4464b8]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [eax]
add eax, 4
cmp edx, eax
jne 0x40f77a
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.0040bf60
mov edx, dword [0x4534ec]
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 [0x4534ec], 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 0x40f993
mov esi, dword [ebp - 0x84]
mov ebx, dword [esi + 0xec]
mov dword [ebp - 0xf0], ebx
mov eax, dword [esi + 0x40]
test ebx, ebx
je 0x412d0d
test eax, eax
jne 0x411dde
mov ecx, dword [esi + 0x5c]
mov edx, 2
cmp ecx, edx
cmovge edx, ecx
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jle 0x413461
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 0x40f8f5
fld dword [0x4464c0]
fxch st(1)
fcomi st(1)
ja 0x41222c
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 0x41224e
movsx ecx, bx
fld dword [esi + eax*2 - 2]
fld dword [0x44656c]
fcompi st(1)
ja 0x40f8b6
fstp st(0)
fld dword [0x4464bc]
jmp 0x40f8c8
mov eax, dword [ebp - 0xb0]
mov dword [0x4534ec], eax
mov dword [ebp - 0xc0], 0
jmp 0x40f6cb
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.00415a30
add esp, 0x30
mov edx, dword [ebp - 0x118]
jmp 0x40ecef
mov eax, dword [ebp - 0x64]
lea esi, [eax + eax]
jmp 0x40f7a1
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 0x40fbe3
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x411b41
fld dword [0x446488]
fimul dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x64]
cmp eax, edi
jge 0x41310c
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 [0x4464cc]
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 0x40fa42
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 0x40fa20
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 [0x4464dc]
fcomi st(1)
ja 0x411b48
fstp st(0)
fld dword [0x4464d4]
fxch st(1)
fcomi st(1)
jbe 0x411f6d
fstp st(0)
fld dword [0x4464d0]
fxch st(1)
fstp dword [ebp - 0x1a0]
jmp 0x411b58
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 0x40ec47
cmp dword [ebp - 0xe4], 0x22
jg 0x40eb83
jmp 0x40eb7d
fld dword [0x44649c]
jmp 0x40eb6a
test cl, 1
jne 0x41334d
test edi, 2
jne 0x413339
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ef69
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 [0x4534ec], 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.00422400
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.00422610
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.00426048
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
cmp ecx, 0x3fe
jle 0x40fba6
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 0x40eb2c
fld dword [0x446488]
fmul st(1), st(0)
cmp eax, 4
jle 0x40eb2a
cmp eax, 8
jle 0x4134ac
fstp st(0)
fstp st(0)
fldz
jmp 0x40eb2c
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 0x411013
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x410f98
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 [0x4534ec]
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 [0x4534ec], 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.00419ae0
mov eax, ebx
shl eax, 4
sub eax, ebx
add esp, 0x1c
mov esi, dword [ebp - 0x11c]
cmp eax, esi
jg 0x40fcc6
mov ebx, dword [ebp - 0x88]
test ebx, ebx
je 0x411993
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 [0x4534ec]
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 [0x4534ec], eax
push edi
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fe01
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 [0x4464a0]
fadd dword [0x446488]
fadd st(1)
fsub dword [eax*4 + 0x448a8c]
mov edi, eax
imul edi, eax
mov dword [ebp - 0x58], edi
fld dword [0x446578]
fimul dword [ebp - 0x58]
faddp st(1)
fstp dword [ecx + eax*4 - 0x14]
add eax, 1
cmp edx, eax
jne 0x40fdc8
fstp st(0)
mov ecx, dword [ebp - 0x158]
xor ebx, ebx
fld dword [0x4464e0]
xor esi, esi
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fe44
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 0x40fe2e
add esi, 1
add ecx, edi
mov eax, dword [ebp - 0x90]
add ebx, eax
cmp dword [ebp - 0x80], esi
jg 0x40fe17
mov esi, dword [0x4534ec]
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 [0x4534ec], eax
mov esi, dword [ebp - 0x64]
test esi, esi
jle 0x412e95
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 0x40fe9c
cmp dword [ebp - 0x80], 2
je 0x41155a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x410ff2
test al, 2
je 0x40fed1
movsw word es:[edi], word [esi]
test al, 1
je 0x40fed6
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x64], 1
je 0x4133cb
fld dword [ebx]
lea eax, [ebx + 4]
mov esi, dword [ebp - 0xd4]
lea ecx, [ebx + esi]
fld dword [eax]
fxch st(1)
fsub dword [0x446500]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [eax]
add eax, 4
cmp ecx, eax
jne 0x40feee
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 [0x4464d4]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [ebx + eax*4]
sub eax, 1
jae 0x40ff2c
fldz
fld dword [0x44657c]
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 [0x446488]
sub esp, 4
fstp dword [esp]
call fcn.004195ac
pop eax
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
mov edx, 1
cmp ecx, 0xfffffffb
fld dword [ebp - 0x60]
jl 0x40ffbd
cmp dword [ebp - 0x11c], 0x32
setg al
test byte [ebp - 0x108], al
je 0x40fff2
cmp byte [ebp - 0x78], 0
jne 0x411591
mov edi, dword [ebp - 0x88]
mov eax, edi
mov esi, dword [ebp - 0x64]
cmp edi, esi
jge 0x410018
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x64]
mov dword [edx + eax*4], 0xd
add eax, 1
cmp ecx, eax
jne 0x41000a
xor esi, esi
mov eax, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xb0]
lea ebx, [eax + edi]
mov dword [0x4534ec], 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 0x411048
test byte [ebp - 0xe0], 1
je 0x410062
cmp byte [ebp - 0x164], 0
jne 0x412cdf
cmp dword [ebp - 0x11c], 0xe
jg 0x4100b1
cmp byte [ebp - 0x164], 0
je 0x4100b1
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 0x4100d8
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 0x4119c5
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 0x40fc50
test dl, 1
jne 0x41330c
test edi, 2
jne 0x413325
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40fecb
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 0x411f1b
test al, 2
jne 0x411e72
test al, 1
je 0x40fc23
movsb byte es:[edi], byte [esi]
jmp 0x40fc23
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 [0x446488]
fld dword [0x44659c]
fcompi st(1)
ja 0x411e62
fmul dword [0x4465a0]
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 [0x4534ec], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
jle 0x412461
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 0x4123fc
xor esi, esi
jmp 0x40e9c1
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 0x411571
jmp 0x40feb6
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 0x4116a9
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 [0x446488]
fadd dword [ecx + eax*4 - 4]
fxch st(1)
fucomi st(1)
fstp st(1)
fxch st(1)
cmova ebx, eax
fadd dword [0x446580]
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 0x411677
fstp st(0)
lea eax, [ebx - 1]
mov dword [ebp - 0xa8], eax
test ebx, ebx
je 0x4116fc
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 [0x446500]
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 0x4116d6
fstp st(0)
lea edi, [edx + 8]
lea eax, [ecx + 4]
cmp dword [ebp - 0xd8], 2
jle 0x4117b0
mov dword [ebp - 0xa8], esi
mov esi, dword [ebp - 0x70]
jmp 0x411744
fld dword [ecx + 4]
fld dword [ecx]
fcomi st(1)
jbe 0x4117bb
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 0x40fcdf
mov dword [ebp - 0xf0], eax
jmp 0x40fcdf
mov edi, dword [ebp - 0x98]
test edi, edi
jne 0x412028
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 4
jle 0x412213
mov edi, dword [ebp - 0x114]
or edi, dword [eax + 0x40]
jne 0x412213
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.00422270
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x412213
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.004168c0
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.00415e38
add esp, 0x34
push ebx
push dword [ebp - 0xbc]
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push esi
call fcn.0040bf60
add esp, 0x18
mov esi, dword [ebp - 0x160]
test esi, esi
jle 0x411ac9
fld dword [0x446488]
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 0x411ab6
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 0x4137be
fld dword [0x446498]
fstp dword [ebp - 0x150]
mov dword [ebp - 0x98], 1
jmp 0x40fc50
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
jmp 0x40f57b
fldz
jmp 0x40f9dd
fstp st(1)
fld dword [0x4464d8]
fxch st(1)
fstp dword [ebp - 0x1a0]
faddp st(1)
mov eax, dword [ebp - 0x84]
fstp dword [eax + 0xf0]
jmp 0x40fc15
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 0x40e699
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 0x40e73f
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 0x40fc15
fstp st(0)
fld dword [0x4464f4]
fstp dword [ebp - 0x78]
jmp 0x41108b
movsw word es:[edi], word [esi]
test al, 1
je 0x40fc23
jmp 0x411042
cmp dword [eax + 0x18], 4
setg al
movzx eax, al
mov esi, eax
jmp 0x40e9c1
and ecx, 1
jne 0x4134b3
test edi, 2
jne 0x413529
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x41103a
jmp 0x411e72
fstp st(1)
fmul dword [0x446574]
jmp 0x411b58
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.004188e4
add esp, 0xc
jmp 0x40fc50
mov eax, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0xcc], eax
push eax
push dword [ebp - 0x68]
call fcn.00418d94
pop eax
pop edx
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp - 0xcc]
add eax, eax
mov dword [ebp - 0x128], eax
jmp 0x40e7a3
xor ebx, ebx
fld dword [0x4464a0]
jmp 0x40f05b
mov byte [ebp - 0x141], 0
jmp 0x41203b
fstp st(1)
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40f8c8
fmul dword [0x446488]
jmp 0x40f8c8
mov edx, dword [ebp - 0x78]
add edx, 1
mov eax, dword [ebp - 0xdc]
add esi, eax
cmp dword [ebp - 0x80], edx
jne 0x40f89d
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
fxch st(2)
fmul dword [0x446570]
fxch st(1)
fdivrp st(2)
fxch st(1)
fadd dword [0x446498]
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 [0x446488]
fld dword [0x4464c4]
fcomi st(1)
jbe 0x413011
fstp st(0)
fld dword [0x4464c8]
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 0x4122ed
add esi, 1
cmp word [ebx + esi*2 + 2], cx
jl 0x4122e3
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 0x41235a
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 [0x44656c]
fxch st(1)
fcomi st(1)
jbe 0x41237d
fsubrp st(1)
mov esi, dword [ebp - 0x60]
fstp dword [esi + ecx*4]
add eax, 1
jmp 0x412381
fstp st(0)
fstp st(0)
add ecx, 1
cmp edx, ecx
jne 0x41233a
mov edx, dword [ebp - 0xc4]
cmp eax, 2
jle 0x4123d2
fxch st(1)
fadd dword [0x44656c]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x4132d8
mov eax, dword [ebp - 0x168]
mov ecx, eax
add edx, edx
add edx, edx
add eax, edx
fld dword [0x44656c]
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 0x4123b7
jmp 0x4123d4
fxch st(1)
fadd dword [0x446498]
fstp dword [ebp - 0x190]
fmul dword [0x446548]
fstp dword [ebp - 0x180]
jmp 0x40f9c3
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 + 0x44fb80]
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 + 0x44fb81]
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 0x4125ac
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor ecx, ecx
test bl, 1
jne 0x413487
test edi, 2
jne 0x413454
mov edx, dword [ebp - 0x58]
and edx, 0xfffffffc
xor eax, eax
mov dword [edi + eax], ecx
add eax, 4
cmp eax, edx
jb 0x4129c6
add edi, eax
test byte [ebp - 0x58], 2
jne 0x413248
test byte [ebp - 0x58], 1
jne 0x4131c3
fldz
fld st(0)
jmp 0x40f1e3
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x40f156
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x40f14a
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40eaab
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 0x40ea9f
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.004188e4
add esp, 0xc
fld dword [ebp - 0x6c]
fld dword [ebp - 0x60]
fcompi st(1)
jae 0x412f72
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x12c], 0
jmp 0x40e8dd
push 0x1d4c0
call sub.MSVCR80.dll_malloc
mov dword [ebp - 0x140], eax
mov dword [0x4534f0], eax
pop ecx
jmp 0x40e490
mov edi, dword [ebp - 0x64]
test edi, edi
jle 0x4100d8
fldz
fstp dword [ebp - 0x190]
mov edi, dword [ebp - 0x90]
lea esi, [edi + edi]
mov dword [ebp - 0x170], esi
jmp 0x40f9b3
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 [0x446550]
pop ebx
pop esi
fldz
fcompi st(1)
fstp st(0)
ja 0x40f35e
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 [0x446550]
fld dword [0x446554]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x4137fd
fstp st(0)
fld qword [0x4464b0]
fsqrt
fstp dword [ebp - 0x150]
jmp 0x40f52f
fldz
fchs
jmp 0x40e8a4
fldz
fchs
fxch st(1)
jmp 0x40e857
push 1
push 0
push dword [ebp - 0x68]
call fcn.004188e4
mov edx, dword [0x4534ec]
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0xa8], eax
add esp, 0xc
jmp 0x40effc
movzx eax, al
mov dword [ebp - 0x98], eax
jmp 0x40f31a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x413380
test al, 2
je 0x412eb0
movsw word es:[edi], word [esi]
test al, 1
je 0x412eb5
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x64]
sub eax, 2
mov dword [ebp - 0xd8], eax
jmp 0x40ffd6
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40edd9
movzx eax, byte [ebx]
mov byte [ecx], al
add edi, 1
add esi, 1
mov eax, 0xfff
jmp 0x40edcd
mov ecx, dword [ebp - 0x138]
test ecx, ecx
jle 0x41336d
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 1]
mov esi, dword [ebp - 0xcc]
cmp eax, esi
jl 0x4131a2
fstp dword [ebp - 0x58]
mov esi, dword [ebp - 0xcc]
push esi
push dword [ebp - 0x68]
call fcn.00418d94
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 0x40e8dd
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 0x40f3a0
fstp st(1)
jmp 0x4122c6
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f3f4
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 0x40f3e8
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f3d0
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 0x40f3c4
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f3ac
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 0x40e59f
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 0x40fa4f
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 0x412f94
mov eax, ecx
stosb byte es:[edi], al
jmp 0x4129e6
mov eax, ecx
stosw word es:[edi], ax
jmp 0x4129dc
fstp st(0)
xor esi, esi
mov dword [ebp - 0x98], 0
fld qword [0x4464a8]
fldz
fld st(0)
fcomi st(2)
ja 0x41386d
fstp st(1)
fucompi st(1)
ja 0x413847
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], esi
jmp 0x412e1c
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 [0x446498]
fstp dword [ebp - 0x190]
jmp 0x40f9b3
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 0x410ffb
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x411007
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40fb04
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 0x40faf8
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
jmp 0x412fc2
test dl, 1
jne 0x41389f
test edi, 2
jne 0x41388b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x412eaa
mov dword [ebp - 0xd8], 0xffffffff
jmp 0x40ff49
mov eax, ecx
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x4129be
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 0x41227e
mov eax, ecx
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x4129b2
fmulp st(1)
jmp 0x40eb2c
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 0x411f24
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x411f30
mov dword [ebp - 0x98], 1
fld dword [0x446498]
fstp dword [ebp - 0x150]
jmp 0x41203b
fmul dword [0x446558]
fld qword [0x446560]
fsubp st(1)
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xe0], eax
jmp 0x413278
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 0x40f52f
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 0x40f52f
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x413395
movzx eax, byte [ebx]
mov byte [edx], al
add edi, 1
add esi, 1
mov eax, dword [ebp - 0xd4]
sub eax, 1
jmp 0x413389
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 0x40f1f9