Function at 0x40e420
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 [0x454120]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x412cb4
mov eax, dword [ebp - 0x140]
mov dword [0x454120], 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 0x40e529
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 0x40e529
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0xa4], eax
cmp ecx, eax
je 0x413086
xor ecx, ecx
mov dword [ebp - 0x60], ebx
jmp 0x40e522
mov ebx, eax
shl ebx, cl
cmp ebx, esi
je 0x40e545
add ecx, 1
cmp ecx, edx
jle 0x40e51a
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 0x40ee17
push ecx
call fcn.00419108
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 0x40edff
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 0x40e689
add esi, eax
cmp dword [ebp - 0x6c], 0xffffffff
je 0x40ee61
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 0x40eed5
mov eax, dword [ebp - 0x138]
test eax, eax
jle 0x40e793
mov ecx, dword [ebp - 0x84]
mov esi, dword [ecx + 0x34]
test esi, esi
je 0x40e793
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 0x41213f
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 [0x454120]
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 [0x454120], 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 0x412e43
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 0x40e822
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 0x412e3a
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 0x40e871
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 0x412c4f
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 0x40e904
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40e923
fld dword [0x446cfc]
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.00414000
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 0x40e901
mov eax, dword [eax + 0x40]
test eax, eax
je 0x40e971
cmp byte [ebp - 0x98], 0
jne 0x40e98c
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 0x40e9b1
mov esi, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x114]
or esi, eax
jne 0x411537
mov eax, dword [ebp - 0x84]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x411e71
mov edi, dword [ebp - 0x84]
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x124], eax
mov eax, dword [0x454120]
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 [0x454120], 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 0x412c34
test edi, 2
jne 0x412c20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40eaa8
movsw word es:[edi], word [esi]
test al, 1
je 0x40eaad
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 0x40f3cc
test al, 2
je 0x40eacd
movsw word es:[edi], word [esi]
test al, 1
je 0x40ead2
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 0x40ea75
mov esi, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xf8]
test esi, esi
jne 0x40fb00
mov dword [ebp - 0x4c], 0xf
mov ecx, 0xf
fldz
jmp 0x40eb1c
fstp st(0)
mov eax, dword [ebp - 0x84]
mov esi, dword [eax + 0x78]
test esi, esi
je 0x40eb2f
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 0x40fad4
fld dword [0x446d08]
cmp dword [ebp - 0xe4], 0x18
jg 0x40fac2
fadd dword [0x446d8c]
fadd dword [0x446d8c]
mov eax, dword [ebp - 0x84]
fld dword [0x446d0c]
fld dword [eax + 0x6c]
fcomi st(1)
fstp st(1)
jbe 0x40eb92
fxch st(1)
fsub dword [0x446d8c]
fxch st(1)
fld dword [0x446d90]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40ebaa
fxch st(1)
fsub dword [0x446d8c]
fxch st(1)
fld dword [0x446d08]
fxch st(2)
fcomi st(2)
fcmovbe st(0), st(2)
fstp st(2)
fxch st(1)
fcompi st(2)
ja 0x40fa9b
fld st(1)
fsub st(1)
fabs
fld dword [0x446d8c]
fcompi st(1)
fstp st(0)
fcmovbe st(0), st(1)
fstp st(1)
fmul dword [0x446d94]
fdiv dword [0x446d44]
fadd dword [0x446cf8]
sub esp, 4
fstp dword [esp]
call fcn.0041959c
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 [0x446d98]
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 0x40f387
test al, 2
je 0x40eccc
movsw word es:[edi], word [esi]
test al, 1
je 0x40ecd1
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x98]
test ecx, ecx
jne 0x40f917
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.00415a20
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 0x40f3a8
test al, 2
je 0x40ed79
movsw word es:[edi], word [esi]
test al, 1
je 0x40ed7e
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 0x40eef2
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 0x412f07
test edi, 2
jne 0x412ef3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40edd6
movsw word es:[edi], word [esi]
test al, 1
je 0x40eddb
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x58], 1
sbb eax, eax
add eax, 2
cmp dword [ebp - 0x94], eax
jle 0x40ef6c
mov esi, dword [edx + 0x68]
mov dword [ebp - 0x58], 1
jmp 0x40ec61
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x40ee61
mov ecx, dword [ebp - 0x60]
imul eax, ecx
mov edx, eax
jmp 0x411d59
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 0x411b92
cmp eax, 0xffffffff
jne 0x411d2a
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 0x40e793
push dword [ebp - 0xcc]
push dword [ebp - 0x78]
lea esi, [ebp - 0x40]
push esi
call fcn.00418ca0
add esp, 0xc
mov dword [ebp - 0x68], esi
jmp 0x40e74a
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 0x40fadf
test al, 2
je 0x40ef5f
movsw word es:[edi], word [esi]
test al, 1
je 0x40ef64
movsb byte es:[edi], byte [esi]
add esp, 0xc
jmp 0x40eddb
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf0]
mov dword [0x454120], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x16c], eax
fld dword [0x446d0c]
fld dword [ebp - 0x154]
fcompi st(1)
ja 0x40f3f0
mov eax, dword [ebp - 0x84]
fld dword [eax + 0x6c]
fcompi st(1)
fstp st(0)
ja 0x40f3f2
mov dword [ebp - 0x1a8], 0
jmp 0x40efbd
fstp st(0)
fstp st(0)
mov eax, dword [ebp - 0x174]
test eax, eax
jne 0x40f462
mov esi, dword [ebp - 0x88]
test esi, esi
jne 0x40efec
mov eax, dword [ebp - 0xd8]
add eax, 0xf
mov ebx, dword [ebp - 0x100]
cmp eax, ebx
jl 0x412e4e
mov edi, dword [ebp - 0x84]
mov ebx, dword [edi + 0x18]
test ebx, ebx
jle 0x40f4fc
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xe0], eax
test eax, eax
jne 0x40f4fc
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x60]
add eax, esi
cmp dword [ebp - 0x11c], 0xe
jg 0x41216e
cmp byte [ebp - 0x164], 0
je 0x41216e
cmp dword [edi + 0xb8], 2
je 0x41216e
mov ebx, 1
fld dword [0x446d14]
mov dword [0x454120], 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 0x413254
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 0x41298e
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 [0x446cf8]
fmul st(2)
fsubp st(3)
fxch st(1)
fstp dword [edx]
add eax, 4
add edx, 4
cmp ecx, eax
jne 0x40f0fc
fstp st(0)
fstp st(0)
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor eax, eax
test bl, 1
jne 0x412c13
test edi, 2
jne 0x412c08
mov ecx, dword [ebp - 0x58]
and ecx, 0xfffffffc
xor edx, edx
mov dword [edi + edx], eax
add edx, 4
cmp edx, ecx
jb 0x40f14e
add edi, edx
test byte [ebp - 0x58], 2
je 0x40f162
stosw word es:[edi], ax
test byte [ebp - 0x58], 1
je 0x40f169
stosb byte es:[edi], al
cmp dword [ebp - 0x78], 1
je 0x4129d6
xor eax, eax
fldz
fld st(0)
mov edx, dword [ebp - 0xc0]
jmp 0x40f183
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 0x40f181
fstp st(0)
mov eax, dword [ebp - 0xc4]
fldz
fld st(0)
jmp 0x40f1b6
fxch st(1)
fld dword [ebx + eax*4]
fsub st(1)
fmul dword [0x446d2c]
faddp st(1)
fst dword [ebx + eax*4]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
sub eax, 1
jae 0x40f1b4
fstp st(1)
fmulp st(1)
fmul dword [0x446cf8]
fmul st(2)
fldz
fucompi st(1)
ja 0x4138a8
fsqrt
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fadd dword [0x446d28]
fdivr st(1)
cmp dword [ebp - 0x78], 0x23
jle 0x40f299
fmul dword [0x446db8]
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 [0x446d28]
fadd dword [ebx + edx*4]
fmul st(1)
fldcw word [ebp - 0x54]
frndint
fldcw word [ebp - 0x52]
mov ecx, 2
fld dword [0x446dbc]
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x40f261
mov ecx, 0xff
fldz
fcompi st(1)
ja 0x40f265
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + 0x44adc0]
jmp 0x40f267
fstp st(0)
jmp 0x40f267
fstp st(0)
add eax, ecx
add edx, 4
cmp edx, esi
jl 0x40f21f
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 0x40f29b
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 0x40f0d6
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 0x412e77
test al, al
je 0x412e77
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 0x412dae
fxch st(1)
fsqrt
fst dword [ebp - 0x58]
fld dword [ebp - 0x58]
fsub dword [0x446dc0]
fxch st(2)
fcompi st(2)
fstp st(1)
jbe 0x412de6
fstp st(0)
fldz
fstp dword [ebp - 0x150]
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x40f52d
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 1
jmp 0x40f56b
test cl, 1
jne 0x412fe5
test edi, 2
jne 0x413072
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ecc6
test edi, 1
jne 0x413056
test edi, 2
jne 0x413042
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ed73
test edi, 1
jne 0x41301c
test edi, 2
jne 0x413008
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40eac7
fstp st(0)
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0x78]
test edx, edx
je 0x40f412
fld qword [str.333333]
fld dword [eax + 0x7c]
fcompi st(1)
fstp st(0)
jbe 0x40efad
fild dword [ebp - 0x16c]
mov eax, dword [ebp - 0x84]
fild dword [eax + 0x68]
fld qword [0x446da8]
fmul st(1)
fxch st(2)
mov dword [ebp - 0x1a8], 1
fcomi st(2)
fstp st(2)
ja 0x40efb9
fmul qword [0x446db0]
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 0x40efcb
push 1
push 1
push dword [ebp - 0x68]
call fcn.004188d4
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.00418db4
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.00418944
add esp, 0x24
push 3
push edi
push ebx
call fcn.00418944
push 2
push 0x450364
push dword [ebp - 0x124]
push ebx
call fcn.00418c04
mov edx, dword [0x454120]
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 0x40effd
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 0x40f364
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 0x411b0e
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 0x40f8fd
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 7
jle 0x40f8fd
mov eax, dword [ebp - 0xb0]
mov dword [0x454120], 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.004168b0
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.00415e28
add esp, 0x34
push edi
push dword [ebp - 0x148]
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push ebx
call fcn.0040bf50
add esp, 0x18
mov edi, dword [ebp - 0x160]
test edi, edi
jle 0x40f6b1
fld dword [0x446cf8]
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 0x40f6a2
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.004168b0
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.00415e28
add esp, 0x1c
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x40f978
cmp dword [ebp - 0x64], 2
jle 0x40f978
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 [0x446dd8]
fmul dword [ecx]
fucomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fld dword [0x446d28]
fxch st(1)
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fstp dword [eax]
add eax, 4
cmp edx, eax
jne 0x40f76a
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.0040bf50
mov edx, dword [0x454120]
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 [0x454120], 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 0x40f983
mov esi, dword [ebp - 0x84]
mov ebx, dword [esi + 0xec]
mov dword [ebp - 0xf0], ebx
mov eax, dword [esi + 0x40]
test ebx, ebx
je 0x412cfd
test eax, eax
jne 0x411dce
mov ecx, dword [esi + 0x5c]
mov edx, 2
cmp ecx, edx
cmovge edx, ecx
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jle 0x413451
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 0x40f8e5
fld dword [0x446d30]
fxch st(1)
fcomi st(1)
ja 0x41221c
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 0x41223e
movsx ecx, bx
fld dword [esi + eax*2 - 2]
fld dword [0x446ddc]
fcompi st(1)
ja 0x40f8a6
fstp st(0)
fld dword [0x446d2c]
jmp 0x40f8b8
mov eax, dword [ebp - 0xb0]
mov dword [0x454120], eax
mov dword [ebp - 0xc0], 0
jmp 0x40f6bb
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.00415a20
add esp, 0x30
mov edx, dword [ebp - 0x118]
jmp 0x40ecdf
mov eax, dword [ebp - 0x64]
lea esi, [eax + eax]
jmp 0x40f791
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 0x40fbd3
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x411b31
fld dword [0x446cf8]
fimul dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x64]
cmp eax, edi
jge 0x4130fc
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 [0x446d3c]
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 0x40fa32
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 0x40fa10
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 [0x446d4c]
fcomi st(1)
ja 0x411b38
fstp st(0)
fld dword [0x446d44]
fxch st(1)
fcomi st(1)
jbe 0x411f5d
fstp st(0)
fld dword [0x446d40]
fxch st(1)
fstp dword [ebp - 0x1a0]
jmp 0x411b48
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 0x40ec37
cmp dword [ebp - 0xe4], 0x22
jg 0x40eb73
jmp 0x40eb6d
fld dword [0x446d0c]
jmp 0x40eb5a
test cl, 1
jne 0x41333d
test edi, 2
jne 0x413329
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40ef59
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 [0x454120], 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.004223f0
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.00422600
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.00426038
mov ecx, dword [ebp - 0x4c]
add esp, 0x20
cmp ecx, 0x3fe
jle 0x40fb96
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 0x40eb1c
fld dword [0x446cf8]
fmul st(1), st(0)
cmp eax, 4
jle 0x40eb1a
cmp eax, 8
jle 0x41349c
fstp st(0)
fstp st(0)
fldz
jmp 0x40eb1c
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 0x411003
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x410f88
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 [0x454120]
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 [0x454120], 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.00419ad0
mov eax, ebx
shl eax, 4
sub eax, ebx
add esp, 0x1c
mov esi, dword [ebp - 0x11c]
cmp eax, esi
jg 0x40fcb6
mov ebx, dword [ebp - 0x88]
test ebx, ebx
je 0x411983
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 [0x454120]
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 [0x454120], eax
push edi
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fdf1
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 [0x446d10]
fadd dword [0x446cf8]
fadd st(1)
fsub dword [eax*4 + 0x4492ec]
mov edi, eax
imul edi, eax
mov dword [ebp - 0x58], edi
fld dword [0x446de8]
fimul dword [ebp - 0x58]
faddp st(1)
fstp dword [ecx + eax*4 - 0x14]
add eax, 1
cmp edx, eax
jne 0x40fdb8
fstp st(0)
mov ecx, dword [ebp - 0x158]
xor ebx, ebx
fld dword [0x446d50]
xor esi, esi
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x64]
test eax, eax
jle 0x40fe34
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 0x40fe1e
add esi, 1
add ecx, edi
mov eax, dword [ebp - 0x90]
add ebx, eax
cmp dword [ebp - 0x80], esi
jg 0x40fe07
mov esi, dword [0x454120]
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 [0x454120], eax
mov esi, dword [ebp - 0x64]
test esi, esi
jle 0x412e85
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 0x40fe8c
cmp dword [ebp - 0x80], 2
je 0x41154a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x410fe2
test al, 2
je 0x40fec1
movsw word es:[edi], word [esi]
test al, 1
je 0x40fec6
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x64], 1
je 0x4133bb
fld dword [ebx]
lea eax, [ebx + 4]
mov esi, dword [ebp - 0xd4]
lea ecx, [ebx + esi]
fld dword [eax]
fxch st(1)
fsub dword [0x446d70]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [eax]
add eax, 4
cmp ecx, eax
jne 0x40fede
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 [0x446d44]
fxch st(1)
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fst dword [ebx + eax*4]
sub eax, 1
jae 0x40ff1c
fldz
fld dword [0x446dec]
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 [0x446cf8]
sub esp, 4
fstp dword [esp]
call fcn.0041959c
pop eax
fstp dword [ebp - 0x58]
cvttss2si ecx, dword [ebp - 0x58]
mov edx, 1
cmp ecx, 0xfffffffb
fld dword [ebp - 0x60]
jl 0x40ffad
cmp dword [ebp - 0x11c], 0x32
setg al
test byte [ebp - 0x108], al
je 0x40ffe2
cmp byte [ebp - 0x78], 0
jne 0x411581
mov edi, dword [ebp - 0x88]
mov eax, edi
mov esi, dword [ebp - 0x64]
cmp edi, esi
jge 0x410008
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x64]
mov dword [edx + eax*4], 0xd
add eax, 1
cmp ecx, eax
jne 0x40fffa
xor esi, esi
mov eax, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xb0]
lea ebx, [eax + edi]
mov dword [0x454120], 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 0x411038
test byte [ebp - 0xe0], 1
je 0x410052
cmp byte [ebp - 0x164], 0
jne 0x412ccf
cmp dword [ebp - 0x11c], 0xe
jg 0x4100a1
cmp byte [ebp - 0x164], 0
je 0x4100a1
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 0x4100c8
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 0x4119b5
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 0x40fc40
test dl, 1
jne 0x4132fc
test edi, 2
jne 0x413315
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x40febb
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 0x411f0b
test al, 2
jne 0x411e62
test al, 1
je 0x40fc13
movsb byte es:[edi], byte [esi]
jmp 0x40fc13
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 [0x446cf8]
fld dword [0x446e0c]
fcompi st(1)
ja 0x411e52
fmul dword [0x446e10]
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 [0x454120], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
jle 0x412451
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 0x4123ec
xor esi, esi
jmp 0x40e9b1
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 0x411561
jmp 0x40fea6
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 0x411699
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 [0x446cf8]
fadd dword [ecx + eax*4 - 4]
fxch st(1)
fucomi st(1)
fstp st(1)
fxch st(1)
cmova ebx, eax
fadd dword [0x446df0]
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 0x411667
fstp st(0)
lea eax, [ebx - 1]
mov dword [ebp - 0xa8], eax
test ebx, ebx
je 0x4116ec
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 [0x446d70]
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 0x4116c6
fstp st(0)
lea edi, [edx + 8]
lea eax, [ecx + 4]
cmp dword [ebp - 0xd8], 2
jle 0x4117a0
mov dword [ebp - 0xa8], esi
mov esi, dword [ebp - 0x70]
jmp 0x411734
fld dword [ecx + 4]
fld dword [ecx]
fcomi st(1)
jbe 0x4117ab
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 0x40fccf
mov dword [ebp - 0xf0], eax
jmp 0x40fccf
mov edi, dword [ebp - 0x98]
test edi, edi
jne 0x412018
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x18], 4
jle 0x412203
mov edi, dword [ebp - 0x114]
or edi, dword [eax + 0x40]
jne 0x412203
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.00422260
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x412203
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.004168b0
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.00415e28
add esp, 0x34
push ebx
push dword [ebp - 0xbc]
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x9c]
push esi
call fcn.0040bf50
add esp, 0x18
mov esi, dword [ebp - 0x160]
test esi, esi
jle 0x411ab9
fld dword [0x446cf8]
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 0x411aa6
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 0x4137ae
fld dword [0x446d08]
fstp dword [ebp - 0x150]
mov dword [ebp - 0x98], 1
jmp 0x40fc40
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x110], 0
jmp 0x40f56b
fldz
jmp 0x40f9cd
fstp st(1)
fld dword [0x446d48]
fxch st(1)
fstp dword [ebp - 0x1a0]
faddp st(1)
mov eax, dword [ebp - 0x84]
fstp dword [eax + 0xf0]
jmp 0x40fc05
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 0x40e689
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 0x40e72f
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 0x40fc05
fstp st(0)
fld dword [0x446d64]
fstp dword [ebp - 0x78]
jmp 0x41107b
movsw word es:[edi], word [esi]
test al, 1
je 0x40fc13
jmp 0x411032
cmp dword [eax + 0x18], 4
setg al
movzx eax, al
mov esi, eax
jmp 0x40e9b1
and ecx, 1
jne 0x4134a3
test edi, 2
jne 0x413519
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x41102a
jmp 0x411e62
fstp st(1)
fmul dword [0x446de4]
jmp 0x411b48
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.004188d4
add esp, 0xc
jmp 0x40fc40
mov eax, dword [ebp - 0x58]
add eax, esi
mov dword [ebp - 0xcc], eax
push eax
push dword [ebp - 0x68]
call fcn.00418d84
pop eax
pop edx
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp - 0xcc]
add eax, eax
mov dword [ebp - 0x128], eax
jmp 0x40e793
xor ebx, ebx
fld dword [0x446d10]
jmp 0x40f04b
mov byte [ebp - 0x141], 0
jmp 0x41202b
fstp st(1)
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x40f8b8
fmul dword [0x446cf8]
jmp 0x40f8b8
mov edx, dword [ebp - 0x78]
add edx, 1
mov eax, dword [ebp - 0xdc]
add esi, eax
cmp dword [ebp - 0x80], edx
jne 0x40f88d
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xc4]
fild dword [ebp - 0x6c]
fxch st(2)
fmul dword [0x446de0]
fxch st(1)
fdivrp st(2)
fxch st(1)
fadd dword [0x446d08]
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 [0x446cf8]
fld dword [0x446d34]
fcomi st(1)
jbe 0x413001
fstp st(0)
fld dword [0x446d38]
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 0x4122dd
add esi, 1
cmp word [ebx + esi*2 + 2], cx
jl 0x4122d3
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 0x41234a
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 [0x446ddc]
fxch st(1)
fcomi st(1)
jbe 0x41236d
fsubrp st(1)
mov esi, dword [ebp - 0x60]
fstp dword [esi + ecx*4]
add eax, 1
jmp 0x412371
fstp st(0)
fstp st(0)
add ecx, 1
cmp edx, ecx
jne 0x41232a
mov edx, dword [ebp - 0xc4]
cmp eax, 2
jle 0x4123c2
fxch st(1)
fadd dword [0x446ddc]
fldz
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x4132c8
mov eax, dword [ebp - 0x168]
mov ecx, eax
add edx, edx
add edx, edx
add eax, edx
fld dword [0x446ddc]
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 0x4123a7
jmp 0x4123c4
fxch st(1)
fadd dword [0x446d08]
fstp dword [ebp - 0x190]
fmul dword [0x446db8]
fstp dword [ebp - 0x180]
jmp 0x40f9b3
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 + 0x4503e0]
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 + 0x4503e1]
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 0x41259c
mov edi, ebx
mov dword [ebp - 0x58], 0x30
xor ecx, ecx
test bl, 1
jne 0x413477
test edi, 2
jne 0x413444
mov edx, dword [ebp - 0x58]
and edx, 0xfffffffc
xor eax, eax
mov dword [edi + eax], ecx
add eax, 4
cmp eax, edx
jb 0x4129b6
add edi, eax
test byte [ebp - 0x58], 2
jne 0x413238
test byte [ebp - 0x58], 1
jne 0x4131b3
fldz
fld st(0)
jmp 0x40f1d3
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x40f146
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x40f13a
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40ea9b
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 0x40ea8f
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.004188d4
add esp, 0xc
fld dword [ebp - 0x6c]
fld dword [ebp - 0x60]
fcompi st(1)
jae 0x412f62
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x12c], 0
jmp 0x40e8cd
push 0x1d4c0
call sub.MSVCR80.dll_malloc
mov dword [ebp - 0x140], eax
mov dword [0x454124], eax
pop ecx
jmp 0x40e480
mov edi, dword [ebp - 0x64]
test edi, edi
jle 0x4100c8
fldz
fstp dword [ebp - 0x190]
mov edi, dword [ebp - 0x90]
lea esi, [edi + edi]
mov dword [ebp - 0x170], esi
jmp 0x40f9a3
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 [0x446dc0]
pop ebx
pop esi
fldz
fcompi st(1)
fstp st(0)
ja 0x40f34e
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 [0x446dc0]
fld dword [0x446dc4]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x4137ed
fstp st(0)
fld qword [0x446d20]
fsqrt
fstp dword [ebp - 0x150]
jmp 0x40f51f
fldz
fchs
jmp 0x40e894
fldz
fchs
fxch st(1)
jmp 0x40e847
push 1
push 0
push dword [ebp - 0x68]
call fcn.004188d4
mov edx, dword [0x454120]
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [ebp - 0xa8], eax
add esp, 0xc
jmp 0x40efec
movzx eax, al
mov dword [ebp - 0x98], eax
jmp 0x40f30a
mov ecx, dword [ebp - 0xd4]
mov eax, ecx
mov edi, edx
mov esi, ebx
cmp ecx, 4
jae 0x413370
test al, 2
je 0x412ea0
movsw word es:[edi], word [esi]
test al, 1
je 0x412ea5
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x64]
sub eax, 2
mov dword [ebp - 0xd8], eax
jmp 0x40ffc6
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40edc9
movzx eax, byte [ebx]
mov byte [ecx], al
add edi, 1
add esi, 1
mov eax, 0xfff
jmp 0x40edbd
mov ecx, dword [ebp - 0x138]
test ecx, ecx
jle 0x41335d
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 1]
mov esi, dword [ebp - 0xcc]
cmp eax, esi
jl 0x413192
fstp dword [ebp - 0x58]
mov esi, dword [ebp - 0xcc]
push esi
push dword [ebp - 0x68]
call fcn.00418d84
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 0x40e8cd
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 0x40f390
fstp st(1)
jmp 0x4122b6
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f3e4
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 0x40f3d8
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f3c0
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 0x40f3b4
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40f39c
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 0x40e58f
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 0x40fa3f
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 0x412f84
mov eax, ecx
stosb byte es:[edi], al
jmp 0x4129d6
mov eax, ecx
stosw word es:[edi], ax
jmp 0x4129cc
fstp st(0)
xor esi, esi
mov dword [ebp - 0x98], 0
fld qword [0x446d18]
fldz
fld st(0)
fcomi st(2)
ja 0x41385d
fstp st(1)
fucompi st(1)
ja 0x413837
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], esi
jmp 0x412e0c
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 [0x446d08]
fstp dword [ebp - 0x190]
jmp 0x40f9a3
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 0x410feb
movzx ecx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x410ff7
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x40faf4
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 0x40fae8
cmp dword [ebp - 0xe4], 3
setg byte [ebp - 0x98]
jmp 0x412fb2
test dl, 1
jne 0x41388f
test edi, 2
jne 0x41387b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x412e9a
mov dword [ebp - 0xd8], 0xffffffff
jmp 0x40ff39
mov eax, ecx
stosw word es:[edi], ax
sub dword [ebp - 0x58], 2
jmp 0x4129ae
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 0x41226e
mov eax, ecx
stosb byte es:[edi], al
mov dword [ebp - 0x58], 0x2f
jmp 0x4129a2
fmulp st(1)
jmp 0x40eb1c
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 0x411f14
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x411f20
mov dword [ebp - 0x98], 1
fld dword [0x446d08]
fstp dword [ebp - 0x150]
jmp 0x41202b
fmul dword [0x446dc8]
fld qword [0x446dd0]
fsubp st(1)
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xe0], eax
jmp 0x413268
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 0x40f51f
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 0x40f51f
movzx ebx, word [esi]
mov word [edi], bx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x413385
movzx eax, byte [ebx]
mov byte [edx], al
add edi, 1
add esi, 1
mov eax, dword [ebp - 0xd4]
sub eax, 1
jmp 0x413379
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 0x40f1e9