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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 0x28]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edx - 1]
mov dword [esp + 0x60], esi
mov ebx, dword [esp + 0x60]
push edi
test eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], 0
jle 0x41127e
mov edx, dword [ebp + 0x14]
cmp byte [edx], 1
jne 0x411254
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
fild dword [esp + 0x24]
mov edi, dword [ecx + edx*4]
lea eax, [edx + 1]
lea esi, [ecx + edx*4]
xor edx, edx
mov ecx, dword [ecx + eax*4]
mov dword [ebp + 0xc], esi
cmp ecx, edi
mov ecx, dword [ebp + 0x14]
fmul dword [esp + 0x38]
mov edi, dword [ebp + 8]
mov byte [ecx], 0
setg dl
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x18]
fstp dword [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
sub edi, eax
sub esi, eax
mov dword [esp + 0x5c], edi
mov eax, dword [ebp + 0x34]
fild dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
mov esi, dword [ebp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, 1
fmul dword [esp + 0x38]
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0
fidiv dword [esp + 0x5c]
fadd dword [esp + 0x20]
fstp dword [eax]
xor eax, eax
cmp edx, eax
mov dword [esi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
jle 0x410fa6
mov edi, dword [ebp + 0x20]
cmp edx, edi
jge 0x410fa6
test ecx, ecx
jle 0x410fa6
cmp ecx, dword [ebp + 0x1c]
jge 0x410fa6
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x410fa6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp dword [eax], ecx
je 0x410f94
cmp dword [eax + 4], ecx
je 0x410f94
cmp dword [eax + edi*4], ecx
je 0x410f94
cmp dword [eax + edi*4 + 4], ecx
je 0x410f94
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
inc edx
mov esi, eax
mov dword [esp + 0x10], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + edi*4]
mov esi, dword [esi + edi*4 + 4]
sub esi, ebx
sub edx, ebx
mov dword [esp + 0x54], esi
sub ecx, ebx
add esi, edx
sub eax, ebx
add esi, ecx
mov dword [esp + 0x5c], eax
add esi, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], edx
fild dword [esp + 0x40]
fmul dword [0x442620]
fst dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x410b9d
fld dword [esp + 0x40]
fadd dword [0x442610]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x410bad
jmp dword [eax*4 + 0x412ba4]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
mov dl, byte [ecx + 1]
cmp al, 1
jne 0x410c08
cmp dl, 1
jne 0x410c17
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x410be5
mov eax, 2
jmp 0x410da8
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x410bad
mov eax, 4
jmp 0x410da8
cmp dl, 1
jne 0x410c17
mov eax, 2
jmp 0x410da8
mov edx, dword [esp + 0x14]
cmp byte [edx + edi], 1
jae 0x410da3
cmp al, 1
jne case.default.0x410bad
mov eax, 4
jmp 0x410da8
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
mov dl, byte [ecx + edi]
cmp al, 1
jb 0x410c85
cmp dl, 1
jb 0x410c8e
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x410da3
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x410bad
mov eax, 1
jmp 0x410da8
cmp dl, 1
jae 0x410da3
mov ecx, dword [esp + 0x18]
cmp byte [ecx], 1
jne 0x410ca1
mov eax, 4
jmp 0x410da8
cmp al, 1
jb case.default.0x410bad
mov eax, 1
jmp 0x410da8
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, 1
jne 0x410d12
cmp byte [ecx + 1], al
jne 0x410d04
fild dword [esp + 0x4c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x410ce1
mov eax, 4
jmp 0x410da8
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x410bad
mov eax, 2
jmp 0x410da8
cmp al, 1
jne 0x410d12
mov eax, 4
jmp 0x410da8
mov edx, dword [esp + 0x14]
cmp byte [edx], 1
jb 0x410d25
mov eax, 1
jmp 0x410da8
cmp byte [ecx + 1], 1
jne case.default.0x410bad
mov eax, 2
jmp 0x410da8
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 1
jb 0x410d88
cmp byte [ecx + edi], 1
jb 0x410d7d
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x410d62
mov eax, 1
jmp 0x410da8
fild dword [esp + 0x4c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x410bad
jmp 0x410da3
cmp al, 1
jb 0x410d88
mov eax, 1
jmp 0x410da8
mov eax, dword [esp + 0x18]
cmp byte [eax + 1], 1
jne 0x410d99
mov eax, 2
jmp 0x410da8
cmp byte [ecx + edi], 1
jb case.default.0x410bad
mov eax, 3
fild dword [esp + 0x4c]
lea ecx, [eax - 1]
cmp ecx, 3
fstp dword [esp + 0x40]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fild dword [esp + 0x5c]
fstp dword [esp + 0x4c]
ja case.default.0x410dd4
jmp dword [ecx*4 + 0x412bb4]
fld dword [esp + 0x4c]
fmul dword [esp + 0x38]
fld dword [esp + 0x4c]
fsub dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
fdivp st(1)
fadd dword [esp + 0x20]
fstp dword [edx + ecx*4]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x14]
fstp dword [ecx + eax*4]
fld dword [esp + 0x1c]
fsub dword [esp + 0x3c]
mov eax, edi
neg eax
mov dword [esp + 0x50], eax
fstp dword [esp + 0x1c]
mov byte [edx], 0
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x30], eax
jmp 0x410f56
fld dword [esp + 0x20]
fadd dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x50], 1
fst dword [esp + 0x20]
fstp dword [ecx + eax*4]
fld dword [esp + 0x58]
fmul dword [esp + 0x3c]
fld dword [esp + 0x58]
fsub dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x18]
fdivp st(1)
fadd dword [esp + 0x1c]
fstp dword [eax + edx*4]
mov byte [ecx + 1], 0
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x28], eax
jmp 0x410f56
fld dword [esp + 0x40]
fmul dword [esp + 0x38]
fld dword [esp + 0x40]
fsub dword [esp + 0x54]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x50], edi
fdivp st(1)
fadd dword [esp + 0x20]
fstp dword [eax + edx*4]
fld dword [esp + 0x1c]
fadd dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x38]
mov eax, dword [esp + 0x14]
fst dword [esp + 0x1c]
fstp dword [edx + ecx*4]
mov byte [eax + edi], 0
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], eax
jmp 0x410f56
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x50], 0xffffffff
fstp dword [edx + ecx*4]
fld dword [esp + 0x20]
fsub dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esp + 0x4c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x4c]
fsub dword [esp + 0x40]
fdivp st(1)
fadd dword [esp + 0x1c]
fstp dword [ecx + eax*4]
mov byte [edx], 0
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x28], eax
jmp 0x410f56
push eax
push str.___error___pas___d__n
call dword [sym.imp.MSVCRT.dll__cprintf]
add esp, 8
mov ebx, dword [esp + 0x50]
test ebx, ebx
jne 0x410f66
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x410fa2
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
add esi, ebx
lea ecx, [eax + ebx*4]
mov dword [esp + 0x14], esi
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x18]
add ecx, ebx
test edx, edx
mov dword [esp + 0x18], ecx
jle 0x410fa6
mov ecx, dword [esp + 0x30]
jmp 0x410ae9
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x410f6a
xor ebx, ebx
dec dword [esp + 0x10]
cmp dword [esp + 0x44], 1
jne 0x411006
mov edx, dword [esp + 0x10]
xor esi, esi
lea eax, [edx + 1]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x411006
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x34]
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
fld dword [edi + ecx]
sub eax, esi
add ecx, 4
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [edi + ecx - 4], edx
mov edx, dword [ebp + 0x38]
fstp dword [eax]
mov eax, dword [esp + 0x10]
fld dword [ecx - 4]
sub eax, esi
inc esi
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov eax, dword [esp + 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x410fc7
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x411254
mov edi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x4110b2
fld qword [edi + 8]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x4110b2
fld qword [edi + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x4110b2
mov esi, dword [ebp + 0x28]
fld qword [esi]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fstp qword [edi + 8]
fld qword [esi + 8]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esp + 0x58], eax
xor eax, eax
fild dword [esp + 0x58]
fstp qword [edi + 0x10]
mov dword [0x453c94], eax
jmp 0x4110b7
mov eax, dword [0x453c94]
cmp dword [edi + 4], eax
jge 0x4110c1
cmp dword [edi], 0
jne 0x411135
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x58], edi
jne 0x4110cd
xor eax, eax
add eax, 0x400
mov dword [0x453c94], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 0x24]
mov edi, eax
mov dword [edx], edi
mov eax, dword [0x453c94]
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x5c]
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx + 4]
lea ecx, [edx + edx*2]
mov edx, dword [ebp + 0x24]
shl ecx, 2
mov edi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edi, dword [ebp + 0x24]
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
fild dword [ebp + 8]
lea edx, [eax + eax*2]
inc eax
mov dword [edi + 4], eax
mov eax, dword [ecx + edx*4 + 8]
fmul dword [0x442600]
lea esi, [ecx + edx*4]
mov edx, dword [esp + 0x54]
test eax, eax
mov dword [esi + 4], edx
fstp dword [esi]
je 0x411167
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 4]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
fld qword [0x4425f8]
mov ecx, dword [ebp + 0x28]
mov dword [esi + 8], eax
fld qword [0x442618]
fld qword [ecx + 0x10]
add esp, 4
fst qword [esp + 0x70]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x4111ac
fstp st(0)
fstp st(0)
fld qword [esp + 0x70]
fcos
fld qword [esp + 0x70]
fsin
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x411250
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
sub edx, eax
mov dword [esp + 0x40], edx
jmp 0x4111cb
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
fld dword [eax + edx]
fld dword [eax]
fadd qword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
fstp qword [esp + 0x70]
fld qword [edx + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x41121b
fld st(0)
fmul st(3)
fld qword [esp + 0x70]
fmul st(3)
mov eax, dword [esi + 8]
fsubp st(1)
fld qword [edx]
fsub qword [edi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fmul st(1)
fld qword [esp + 0x70]
fmul st(3)
faddp st(1)
fld qword [edx + 8]
fsub qword [edi + 0x10]
faddp st(1)
jmp 0x411232
fld qword [edx]
fsub qword [edi + 8]
mov eax, dword [esi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fld qword [edx + 8]
fsub qword [edi + 0x10]
fadd qword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov edx, dword [esi + 8]
add eax, 4
fstp dword [edx + ecx*8 + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
inc ecx
cmp ecx, eax
jl 0x4111c7
fstp st(0)
fstp st(0)
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x20]
inc edi
inc ecx
dec eax
mov dword [ebp + 0x18], edi
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x410a3c
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x64]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], 0
dec ecx
imul ecx, edx
mov dword [esp + 0x68], ecx
lea edi, [ecx + esi]
mov dword [ebp + 0x14], edi
mov edi, dword [esp + 0x60]
add ecx, edi
test eax, eax
mov dword [ebp + 0x18], ecx
jle 0x411b1a
mov edx, dword [ebp + 0x14]
cmp byte [edx], 1
jne 0x411aec
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], 3
lea eax, [ecx + edi]
add ecx, edi
fild dword [esp + 0x24]
mov ecx, dword [edx + ecx*4 + 4]
mov esi, dword [edx + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
cmp ecx, esi
mov esi, dword [ebp + 0x14]
setl dl
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x20]
mov ecx, esi
mov byte [esi], 0
mov esi, dword [ebp + 0x1c]
sub ecx, edx
fmul dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x18]
sub ecx, edx
inc edi
mov dword [esp + 0x18], ecx
lea ecx, [esi - 1]
fstp dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea ecx, [esi - 2]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 8]
fild dword [esp + 0x5c]
mov dword [esp + 0x28], edi
mov edi, eax
fmul dword [esp + 0x3c]
mov eax, dword [edi]
sub ecx, eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 4]
fstp dword [esp + 0x1c]
fild dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x38]
fmul dword [esp + 0x38]
fidiv dword [esp + 0x5c]
fadd dword [esp + 0x20]
fstp dword [eax]
fld dword [esp + 0x1c]
fadd dword [esp + 0x3c]
lea eax, [edx*4]
sub edi, eax
mov eax, dword [esp + 0x28]
fstp dword [ecx]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], ecx
jle 0x41183e
cmp eax, edx
jge 0x41183e
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x41183e
cmp eax, esi
jge 0x41183e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x41183e
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
cmp ecx, eax
je 0x41182c
cmp dword [edi + 4], eax
je 0x41182c
cmp dword [edi + edx*4], eax
je 0x41182c
cmp dword [edi + edx*4 + 4], eax
je 0x41182c
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + ebx*4]
sub eax, esi
sub ecx, esi
sub edx, esi
mov esi, dword [edi + ebx*4 + 4]
sub esi, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], esi
add esi, edx
add esi, ecx
add esi, eax
mov dword [esp + 0x40], esi
fild dword [esp + 0x40]
fmul dword [0x442620]
fst dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x411439
fld dword [esp + 0x40]
fadd dword [0x442610]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x34]
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x411449
jmp dword [eax*4 + 0x412bc4]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
mov dl, byte [ecx + 1]
cmp al, 1
jne 0x4114a4
cmp dl, 1
jne 0x4114b3
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x411481
mov eax, 2
jmp 0x411644
fild dword [esp + 0x50]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411449
mov eax, 4
jmp 0x411644
cmp dl, 1
jne 0x4114b3
mov eax, 2
jmp 0x411644
mov ecx, dword [esp + 0x14]
cmp byte [ecx + ebx], 1
jae 0x41163f
cmp al, 1
jne case.default.0x411449
mov eax, 4
jmp 0x411644
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
mov dl, byte [ecx + ebx]
cmp al, 1
jb 0x411521
cmp dl, 1
jb 0x41152a
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x41163f
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411449
mov eax, 1
jmp 0x411644
cmp dl, 1
jae 0x41163f
mov edx, dword [esp + 0x18]
cmp byte [edx], 1
jne 0x41153d
mov eax, 4
jmp 0x411644
cmp al, 1
jb case.default.0x411449
mov eax, 1
jmp 0x411644
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, 1
jne 0x4115ae
cmp byte [ecx + 1], al
jne 0x4115a0
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x41157d
mov eax, 4
jmp 0x411644
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411449
mov eax, 2
jmp 0x411644
cmp al, 1
jne 0x4115ae
mov eax, 4
jmp 0x411644
mov eax, dword [esp + 0x14]
cmp byte [eax], 1
jb 0x4115c1
mov eax, 1
jmp 0x411644
cmp byte [ecx + 1], 1
jne case.default.0x411449
mov eax, 2
jmp 0x411644
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 1
jb 0x411624
cmp byte [ecx + ebx], 1
jb 0x411619
fild dword [esp + 0x50]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x4115fe
mov eax, 1
jmp 0x411644
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411449
jmp 0x41163f
cmp al, 1
jb 0x411624
mov eax, 1
jmp 0x411644
mov edx, dword [esp + 0x18]
cmp byte [edx + 1], 1
jne 0x411635
mov eax, 2
jmp 0x411644
cmp byte [ecx + ebx], 1
jb case.default.0x411449
mov eax, 3
fild dword [esp + 0x5c]
lea ecx, [eax - 1]
cmp ecx, 3
fstp dword [esp + 0x40]
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fild dword [esp + 0x54]
fstp dword [esp + 0x5c]
fild dword [esp + 0x50]
fstp dword [esp + 0x50]
ja case.default.0x411670
jmp dword [ecx*4 + 0x412bd4]
fld dword [esp + 0x50]
fmul dword [esp + 0x38]
fld dword [esp + 0x50]
fsub dword [esp + 0x5c]
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x10]
fdivp st(1)
fadd dword [esp + 0x20]
fstp dword [eax + ecx*4]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x14]
fstp dword [eax + edx*4]
fld dword [esp + 0x1c]
fsub dword [esp + 0x3c]
mov eax, ebx
neg eax
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x1c]
mov byte [ecx], 0
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x30], eax
jmp 0x4117f2
fld dword [esp + 0x20]
fadd dword [esp + 0x38]
mov edx, dword [ebp + 0x34]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], 1
fst dword [esp + 0x20]
fstp dword [edx + eax*4]
fld dword [esp + 0x5c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x5c]
fsub dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x38]
mov eax, dword [esp + 0x18]
fdivp st(1)
fadd dword [esp + 0x1c]
fstp dword [edx + ecx*4]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x28], eax
jmp 0x4117f2
fld dword [esp + 0x40]
fmul dword [esp + 0x38]
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
fdivp st(1)
fadd dword [esp + 0x20]
fstp dword [ecx + edx*4]
fld dword [esp + 0x1c]
fadd dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x14]
fst dword [esp + 0x1c]
fstp dword [ecx + eax*4]
mov byte [edx + ebx], 0
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], eax
jmp 0x4117f2
fld dword [esp + 0x20]
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
fstp dword [eax + ecx*4]
fld dword [esp + 0x20]
fsub dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esp + 0x50]
fmul dword [esp + 0x3c]
fld dword [esp + 0x50]
fsub dword [esp + 0x40]
fdivp st(1)
fadd dword [esp + 0x1c]
fstp dword [eax + edx*4]
mov byte [ecx], 0
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x28], eax
jmp 0x4117f2
push eax
push str.___error___pas___d__n
call dword [sym.imp.MSVCRT.dll__cprintf]
add esp, 8
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x411802
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41183a
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add esi, ebx
add edx, ebx
lea edi, [edi + ebx*4]
test eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
jle 0x41183e
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
jmp 0x411381
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x411802
xor ebx, ebx
dec dword [esp + 0x10]
cmp dword [esp + 0x44], 1
jne 0x41189e
mov edx, dword [esp + 0x10]
xor esi, esi
lea eax, [edx + 1]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x41189e
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x34]
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
fld dword [ecx + edi]
sub eax, esi
add ecx, 4
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx + edi - 4], edx
mov edx, dword [ebp + 0x38]
fstp dword [eax]
mov eax, dword [esp + 0x10]
fld dword [ecx - 4]
sub eax, esi
inc esi
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov eax, dword [esp + 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x41185f
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jle 0x411aec
mov edi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x41194a
fld qword [edi + 8]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x41194a
fld qword [edi + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x41194a
mov esi, dword [ebp + 0x28]
fld qword [esi]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fstp qword [edi + 8]
fld qword [esi + 8]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esp + 0x58], eax
xor eax, eax
fild dword [esp + 0x58]
fstp qword [edi + 0x10]
mov dword [0x453c94], eax
jmp 0x41194f
mov eax, dword [0x453c94]
cmp dword [edi + 4], eax
jge 0x411959
cmp dword [edi], 0
jne 0x4119cd
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x58], edi
jne 0x411965
xor eax, eax
add eax, 0x400
mov dword [0x453c94], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 0x24]
mov edi, eax
mov dword [edx], edi
mov eax, dword [0x453c94]
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x5c]
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx + 4]
lea ecx, [edx + edx*2]
mov edx, dword [ebp + 0x24]
shl ecx, 2
mov edi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edi, dword [ebp + 0x24]
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
fild dword [ebp + 8]
lea edx, [eax + eax*2]
inc eax
mov dword [edi + 4], eax
mov eax, dword [ecx + edx*4 + 8]
fmul dword [0x442600]
lea esi, [ecx + edx*4]
mov edx, dword [esp + 0x54]
test eax, eax
mov dword [esi + 4], edx
fstp dword [esi]
je 0x4119ff
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 4]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
fld qword [0x4425f8]
mov ecx, dword [ebp + 0x28]
mov dword [esi + 8], eax
fld qword [0x442618]
fld qword [ecx + 0x10]
add esp, 4
fst qword [esp + 0x70]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x411a44
fstp st(0)
fstp st(0)
fld qword [esp + 0x70]
fcos
fld qword [esp + 0x70]
fsin
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x411ae8
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
sub edx, eax
mov dword [esp + 0x40], edx
jmp 0x411a63
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
fld dword [eax + edx]
fld dword [eax]
fadd qword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
fstp qword [esp + 0x70]
fld qword [edx + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x411ab3
fld st(0)
fmul st(3)
fld qword [esp + 0x70]
fmul st(3)
mov eax, dword [esi + 8]
fsubp st(1)
fld qword [edx]
fsub qword [edi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fmul st(1)
fld qword [esp + 0x70]
fmul st(3)
faddp st(1)
fld qword [edx + 8]
fsub qword [edi + 0x10]
faddp st(1)
jmp 0x411aca
fld qword [edx]
fsub qword [edi + 8]
mov eax, dword [esi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fld qword [edx + 8]
fsub qword [edi + 0x10]
fadd qword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov edx, dword [esi + 8]
add eax, 4
fstp dword [edx + ecx*8 + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
inc ecx
cmp ecx, eax
jl 0x411a5f
fstp st(0)
fstp st(0)
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x20]
inc edi
inc ecx
dec eax
mov dword [ebp + 0x18], edi
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x4112a8
mov edx, dword [ebp + 0x20]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], edi
mov dword [esp + 0x24], 0
lea eax, [ecx - 1]
test eax, eax
jle 0x412230
mov edx, dword [ebp + 0x18]
cmp byte [edx], 1
jne 0x4121fd
mov ecx, dword [esp + 0x24]
mov edi, dword [ebp + 0x20]
mov edx, ecx
mov dword [esp + 0x34], 4
imul edx, edi
fild dword [esp + 0x24]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x1c]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0
lea esi, [ecx + edx*4]
mov edx, eax
imul edx, edi
mov ecx, dword [ecx + edx*4]
xor edx, edx
cmp ecx, dword [esi]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x18]
setl dl
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x34]
mov byte [ecx], 0
mov dword [esp + 0x18], ecx
mov dword [edx], 0
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov ecx, 1
sub edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], edx
mov edx, dword [esi + edi*4]
fild dword [esp + 0x68]
sub edx, eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x68], edx
fmul dword [esp + 0x3c]
fidiv dword [esp + 0x68]
fadd dword [esp + 0x1c]
fstp dword [eax]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
cmp ecx, edi
jge 0x411f4f
test edx, edx
jle 0x411f4f
cmp edx, dword [ebp + 0x1c]
jge 0x411f4f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x411f4f
cmp dword [esi], eax
je 0x411f3d
cmp dword [esi + 4], eax
je 0x411f3d
cmp dword [esi + edi*4], eax
je 0x411f3d
cmp dword [esi + edi*4 + 4], eax
je 0x411f3d
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + edi*4]
sub eax, ebx
sub ecx, ebx
sub edx, ebx
mov ebx, dword [esi + edi*4 + 4]
sub ebx, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebx
add ebx, edx
add ebx, ecx
add ebx, eax
mov dword [esp + 0x68], ebx
fild dword [esp + 0x68]
fmul dword [0x442620]
fst dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x411c95
fld dword [esp + 0x40]
fadd dword [0x442610]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x411ca5
jmp dword [eax*4 + 0x412be4]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
mov dl, byte [ecx + 1]
cmp al, 1
jne 0x411d00
cmp dl, 1
jne 0x411d0f
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x411cdd
mov eax, 2
jmp 0x411ea2
fild dword [esp + 0x50]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411ca5
mov eax, 4
jmp 0x411ea2
cmp dl, 1
jne 0x411d0f
mov eax, 2
jmp 0x411ea2
mov edx, dword [esp + 0x14]
cmp byte [edx + edi], 1
jae 0x411e9d
cmp al, 1
jne case.default.0x411ca5
mov eax, 4
jmp 0x411ea2
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + edi]
cmp cl, 1
jb 0x411d7e
cmp dl, 1
jb 0x411d87
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x411e9d
fild dword [esp + 0x54]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411ca5
mov eax, 1
jmp 0x411ea2
cmp dl, 1
jae 0x411e9d
mov eax, dword [esp + 0x18]
cmp byte [eax], 1
jne 0x411d9a
mov eax, 4
jmp 0x411ea2
cmp cl, 1
jb case.default.0x411ca5
mov eax, 1
jmp 0x411ea2
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, 1
jne 0x411e0c
cmp byte [ecx + 1], al
jne 0x411dfe
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x411ddb
mov eax, 4
jmp 0x411ea2
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411ca5
mov eax, 2
jmp 0x411ea2
cmp al, 1
jne 0x411e0c
mov eax, 4
jmp 0x411ea2
mov edx, dword [esp + 0x14]
cmp byte [edx], 1
jb 0x411e1f
mov eax, 1
jmp 0x411ea2
cmp byte [ecx + 1], 1
jne case.default.0x411ca5
mov eax, 2
jmp 0x411ea2
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 1
jb 0x411e82
cmp byte [ecx + edi], 1
jb 0x411e77
fild dword [esp + 0x50]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x411e5c
mov eax, 1
jmp 0x411ea2
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x411ca5
jmp 0x411e9d
cmp al, 1
jb 0x411e82
mov eax, 1
jmp 0x411ea2
mov eax, dword [esp + 0x18]
cmp byte [eax + 1], 1
jne 0x411e93
mov eax, 2
jmp 0x411ea2
cmp byte [ecx + edi], 1
jb case.default.0x411ca5
mov eax, 3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
fild dword [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edi
push edx
push ecx
push ecx
lea edx, [esp + 0x44]
fstp dword [esp]
fild dword [esp + 0x74]
push ecx
fstp dword [esp]
fild dword [esp + 0x74]
push ecx
fstp dword [esp]
fild dword [esp + 0x74]
push ecx
lea ecx, [esp + 0x58]
fstp dword [esp]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x78]
push esi
push ecx
push eax
call fcn.00412c10
mov ebx, eax
add esp, 0x50
test ebx, ebx
jne 0x411f19
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x411f4b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, ebx
add edx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
lea esi, [esi + ebx*4]
mov dword [esp + 0x14], edx
jle 0x411f4f
jmp 0x411be1
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x411f19
xor ebx, ebx
dec dword [esp + 0x10]
cmp dword [esp + 0x44], 1
jne 0x411faf
mov edx, dword [esp + 0x10]
xor esi, esi
lea eax, [edx + 1]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x411faf
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x34]
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x34]
fld dword [ecx + edi]
sub eax, esi
add ecx, 4
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx + edi - 4], edx
mov edx, dword [ebp + 0x38]
fstp dword [eax]
mov eax, dword [esp + 0x10]
fld dword [ecx - 4]
sub eax, esi
inc esi
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov eax, dword [esp + 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x411f70
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x4121fd
mov edi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x41205b
fld qword [edi + 8]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x41205b
fld qword [edi + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x41205b
mov esi, dword [ebp + 0x28]
fld qword [esi]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
fstp qword [edi + 8]
fld qword [esi + 8]
fmul qword [0x442608]
call sub.MSVCRT.dll__ftol
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
mov dword [esp + 0x68], eax
xor eax, eax
fild dword [esp + 0x68]
fstp qword [edi + 0x10]
mov dword [0x453c94], eax
jmp 0x412060
mov eax, dword [0x453c94]
cmp dword [edi + 4], eax
jge 0x41206a
cmp dword [edi], 0
jne 0x4120de
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x58], edi
jne 0x412076
xor eax, eax
add eax, 0x400
mov dword [0x453c94], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 0x24]
mov edi, eax
mov dword [edx], edi
mov eax, dword [0x453c94]
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x5c]
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx + 4]
lea ecx, [edx + edx*2]
mov edx, dword [ebp + 0x24]
shl ecx, 2
mov edi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edi, dword [ebp + 0x24]
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
fild dword [ebp + 8]
lea edx, [eax + eax*2]
inc eax
mov dword [edi + 4], eax
mov eax, dword [ecx + edx*4 + 8]
fmul dword [0x442600]
lea esi, [ecx + edx*4]
mov edx, dword [esp + 0x54]
test eax, eax
mov dword [esi + 4], edx
fstp dword [esi]
je 0x412110
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 4]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
fld qword [0x4425f8]
mov ecx, dword [ebp + 0x28]
mov dword [esi + 8], eax
fld qword [0x442618]
fld qword [ecx + 0x10]
add esp, 4
fst qword [esp + 0x70]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x412155
fstp st(0)
fstp st(0)
fld qword [esp + 0x70]
fcos
fld qword [esp + 0x70]
fsin
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
jle 0x4121f9
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
sub edx, eax
mov dword [esp + 0x40], edx
jmp 0x412174
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
fld dword [eax + edx]
fld dword [eax]
fadd qword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
fstp qword [esp + 0x70]
fld qword [edx + 0x10]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
jne 0x4121c4
fld st(0)
fmul st(3)
fld qword [esp + 0x70]
fmul st(3)
mov eax, dword [esi + 8]
fsubp st(1)
fld qword [edx]
fsub qword [edi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fmul st(1)
fld qword [esp + 0x70]
fmul st(3)
faddp st(1)
fld qword [edx + 8]
fsub qword [edi + 0x10]
faddp st(1)
jmp 0x4121db
fld qword [edx]
fsub qword [edi + 8]
mov eax, dword [esi + 8]
faddp st(1)
fstp dword [eax + ecx*8]
fld qword [edx + 8]
fsub qword [edi + 0x10]
fadd qword [esp + 0x70]
mov eax, dword [esp + 0x5c]
mov edx, dword [esi + 8]
add eax, 4
fstp dword [edx + ecx*8 + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
inc ecx
cmp ecx, eax
jl 0x412170
fstp st(0)
fstp st(0)
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
add ecx, eax
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x24]
add edi, eax
mov eax, dword [ebp + 0x1c]
inc ecx
dec eax
cmp ecx, eax
mov dword [ebp + 0x18], edi
mov dword [esp + 0x24], ecx
jl 0x411b36
mov edx, dword [ebp + 0x20]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
lea ecx, [esi + edx]
mov dword [esp + 0x24], 0
mov dword [esp + 0x6c], ecx
lea ecx, [edi + edx]
mov dword [esp + 0x70], ecx
dec ecx
test eax, eax
mov dword [ebp + 0x18], ecx
jle 0x41278f
mov eax, dword [esp + 0x48]
lea ecx, [edx*4]
sub esi, edi
lea eax, [ecx + eax - 4]
mov dword [esp + 0x68], esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
lea edx, [eax + edx*8 - 4]
mov dword [esp + 0x54], edx
mov eax, dword [ebp + 0x18]
cmp byte [eax], 1
jne 0x412751
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x34], 2
mov eax, dword [edx]
mov esi, dword [edi]
xor edx, edx
cmp eax, esi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x20]
setg dl
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x68]
mov byte [eax], 0
add edi, 0xfffffffc
lea edx, [edx + eax - 1]
mov dword [esp + 0x14], edx
lea edx, [eax - 1]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
inc eax
mov dword [esp + 0x30], eax
lea eax, [esi - 1]
add esi, 0xfffffffe
mov edx, eax
mov dword [esp + 0x64], esi
mov eax, dword [ebp + 0x34]
fild dword [esp + 0x64]
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], edx
fmul dword [esp + 0x38]
fstp dword [esp + 0x20]
fild dword [esp + 0x24]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x38]
fstp dword [eax]
mov eax, dword [edi + 4]
mov ecx, dword [edi + ecx + 4]
sub esi, eax
sub ecx, eax
mov dword [esp + 0x64], esi
mov eax, dword [ebp + 0x38]
fild dword [esp + 0x64]
mov dword [esp + 0x64], ecx
fmul dword [esp + 0x3c]
fidiv dword [esp + 0x64]
fadd dword [esp + 0x1c]
fstp dword [eax]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
jle 0x4126c0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
jge 0x4126c0
mov esi, dword [esp + 0x30]
test esi, esi
jle 0x4126c0
cmp esi, dword [ebp + 0x1c]
jge 0x4126c0
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4126c0
cmp dword [edi], eax
je 0x4126ae
cmp dword [edi + 4], eax
je 0x4126ae
lea ebx, [ecx*4]
cmp dword [ebx + edi], eax
je 0x4126ae
cmp dword [edi + ecx*4 + 4], eax
je 0x4126ae
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [ebx + edi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov ebx, dword [ebp + 0x20]
sub eax, esi
sub ecx, esi
sub edx, esi
mov esi, dword [edi + ebx*4 + 4]
mov dword [esp + 0x58], eax
sub esi, dword [ebp + 8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], esi
add esi, edx
add esi, ecx
add esi, eax
mov dword [esp + 0x4c], esi
fild dword [esp + 0x4c]
fmul dword [0x442620]
fst dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x40
je 0x4123fd
fld dword [esp + 0x40]
fadd dword [0x442610]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x41240d
jmp dword [eax*4 + 0x412bf4]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
mov dl, byte [ecx + 1]
cmp al, 1
jne 0x412468
cmp dl, 1
jne 0x412477
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x412445
mov eax, 2
jmp 0x41260a
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x41240d
mov eax, 4
jmp 0x41260a
cmp dl, 1
jne 0x412477
mov eax, 2
jmp 0x41260a
mov edx, dword [esp + 0x14]
cmp byte [edx + ebx], 1
jae 0x412605
cmp al, 1
jne case.default.0x41240d
mov eax, 4
jmp 0x41260a
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + ebx]
cmp cl, 1
jb 0x4124e6
cmp dl, 1
jb 0x4124ef
fild dword [esp + 0x60]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
jne 0x412605
fild dword [esp + 0x5c]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x41240d
mov eax, 1
jmp 0x41260a
cmp dl, 1
jae 0x412605
mov eax, dword [esp + 0x18]
cmp byte [eax], 1
jne 0x412502
mov eax, 4
jmp 0x41260a
cmp cl, 1
jb case.default.0x41240d
mov eax, 1
jmp 0x41260a
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
cmp al, 1
jne 0x412574
cmp byte [ecx + 1], al
jne 0x412566
fild dword [esp + 0x64]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x412543
mov eax, 4
jmp 0x41260a
fild dword [esp + 0x60]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x41240d
mov eax, 2
jmp 0x41260a
cmp al, 1
jne 0x412574
mov eax, 4
jmp 0x41260a
mov edx, dword [esp + 0x14]
cmp byte [edx], 1
jb 0x412587
mov eax, 1
jmp 0x41260a
cmp byte [ecx + 1], 1
jne case.default.0x41240d
mov eax, 2
jmp 0x41260a
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 1
jb 0x4125ea
cmp byte [ecx + ebx], 1
jb 0x4125df
fild dword [esp + 0x58]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je 0x4125c4
mov eax, 1
jmp 0x41260a
fild dword [esp + 0x64]
fmul dword [esp + 0x40]
fcomp qword [0x442618]
fnstsw ax
test ah, 1
je case.default.0x41240d
jmp 0x412605
cmp al, 1
jb 0x4125ea
mov eax, 1
jmp 0x41260a
mov eax, dword [esp + 0x18]
cmp byte [eax + 1], 1
jne 0x4125fb
mov eax, 2
jmp 0x41260a
cmp byte [ecx + ebx], 1
jb case.default.0x41240d
mov eax, 3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
fild dword [esp + 0x64]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x20]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
push ecx
lea edx, [esp + 0x4c]
fstp dword [esp]
fild dword [esp + 0x7c]
push ecx
fstp dword [esp]
fild dword [esp + 0x7c]
push ecx
fstp dword [esp]
fild dword [esp + 0x7c]
push ecx
lea ecx, [esp + 0x50]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x38]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
push ecx
lea edx, [esp + 0x78]
push edi
push edx
push eax
call fcn.00412c10
mov ebx, eax
add esp, 0x50
test ebx, ebx
jne 0x412684
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4126bc
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, ebx
add ecx, ebx
test edx, edx
lea edi, [edi + ebx*4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
jle 0x4126c0
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
jmp 0x412342
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x412688
xor ebx, ebx
dec dword [esp + 0x10]
cmp dword [esp + 0x44], 1
jne 0x41271e
mov eax, dword [esp + 0x10]
xor esi, esi
inc eax
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x41271e
mov ecx, dword [ebp + 0x38]
mov edi, dword [ebp + 0x34]
sub edi, ecx
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x34]
fld dword [ecx + edi]
sub edx, esi
add ecx, 4
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [ecx + edi - 4], edx
mov edx, dword [ebp + 0x38]
fstp dword [eax]
mov eax, dword [esp + 0x10]
fld dword [ecx - 4]
sub eax, esi
inc esi
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov eax, dword [esp + 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x4126df
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jle 0x412751
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x34]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x24]
push eax
call fcn.00413220
add esp, 0x20
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x50]
add edx, eax
lea ecx, [eax*4]
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [ebp + 0x18], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x1c]
inc edx
add edi, ecx
dec eax
cmp edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], edi
jl 0x412277
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x6c]
cmp eax, 1
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebp + 0x18], ecx
mov dword [esp + 0x24], 1
jle 0x412b9a
jmp 0x4127b3
mov edx, dword [ebp + 0x20]
dec edx
mov dword [esp + 0x4c], 0
test edx, edx
jle 0x412b77
mov edx, dword [ebp + 0x14]
cmp byte [edx], 1
jne 0x412b52
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov edx, dword [esp + 0x48]
imul eax, dword [ebp + 0x20]
fild dword [esp + 0x4c]
fmul dword [esp + 0x38]
fstp dword [esp + 0x60]
fild dword [esp + 0x24]
lea edi, [eax + ecx]
add eax, ecx
fmul dword [esp + 0x3c]
mov eax, dword [edx + eax*4 + 4]
lea edi, [edx + edi*4]
xor edx, edx
mov dword [esp + 0x6c], edi
cmp eax, dword [edi]
mov eax, dword [ebp + 0x14]
fst dword [esp + 0x1c]
setg dl
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov dword [esp + 0x18], edx
mov ecx, eax
mov eax, dword [esp + 0x60]
lea edx, [esi + 1]
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi]
sub esi, eax
mov dword [esp + 0x70], esi
mov esi, dword [edi + 4]
fild dword [esp + 0x70]
sub esi, eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x70], esi
xor esi, esi
fmul dword [esp + 0x38]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x64], esi
fidiv dword [esp + 0x70]
fadd dword [esp + 0x20]
fstp dword [eax]
mov eax, dword [ebp + 0x38]
fstp dword [eax]
test ecx, ecx
jle 0x4128fd
cmp ecx, dword [ebp + 0x20]
jge 0x4128fd
test edx, edx
jle 0x4128fd
cmp edx, dword [ebp + 0x1c]
jge 0x4128fd
mov eax, dword [ebp + 0x38]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edi
push edx
call fcn.00412dc0
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x58]
add esp, 0x48
mov ebx, eax
jmp 0x412901
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4129be
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x4129be
lea eax, [esi + 1]
xor edi, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x41296b
mov ecx, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x34]
sub ebx, ecx
mov eax, dword [ebp + 0x34]
sub esi, edi
fld dword [ecx + ebx]
mov edx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov dword [ecx + ebx], edx
mov edx, dword [ebp + 0x38]
fstp dword [eax]
mov eax, dword [esp + 0x10]
fld dword [ecx]
sub eax, edi
inc edi
add ecx, 4
lea eax, [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x41292f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
mov edx, eax
inc ecx
mov ebx, dword [esp + 0x60]
dec eax
mov dword [esp + 0x70], eax
mov edi, dword [esp + 0x6c]
fild dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x34], 3
mov dword [esp + 0x30], edx
fmul dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], 1
neg ebx
fstp dword [esp + 0x1c]
test ebx, ebx
jne 0x4129cf
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x412a1a
test eax, eax
je 0x412a1a
mov eax, dword [esp + 0x14]
lea edi, [edi + ebx*4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x34]
fld dword [eax + esi*4]
fcomp dword [eax]
fnstsw ax
test ah, 0x40
je 0x412a04
mov eax, dword [ebp + 0x38]
fld dword [eax + esi*4]
fcomp dword [eax]
fnstsw ax
test ah, 0x40
jne 0x412a10
cmp dword [esp + 0x2c], 1
jge 0x412a1f
jmp 0x412883
mov dword [esp + 0x2c], 1
jmp 0x412a1f
dec esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x64], 1
jne 0x412a83
lea eax, [esi + 1]
xor edi, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x412a83
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
sub edx, ecx
mov dword [esp + 0x40], edx
jmp 0x412a46
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x34]
sub esi, edi
fld dword [ecx + edx]
lea eax, [eax + esi*4]
add ecx, 4
mov esi, dword [eax]
mov dword [ecx + edx - 4], esi
fstp dword [eax]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x38]
fld dword [ecx - 4]
sub edx, edi
inc edi
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x412a42
cmp dword [esp + 0x44], 1
jne 0x412ae7
lea eax, [esi + 1]
xor edi, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x412ae7
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
sub edx, ecx
mov dword [esp + 0x40], edx
jmp 0x412aaa
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x34]
sub esi, edi
fld dword [ecx + edx]
lea eax, [eax + esi*4]
add ecx, 4
mov esi, dword [eax]
mov dword [ecx + edx - 4], esi
fstp dword [eax]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x38]
fld dword [ecx - 4]
sub edx, edi
inc edi
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [ecx - 4], edx
fstp dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jl 0x412aa6
inc esi
cmp esi, 7
mov dword [esp + 0x10], esi
jle 0x412b52
test ebx, ebx
je 0x412b2d
mov ecx, dword [ebp + 0x34]
mov eax, dword [ecx + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [ebp + 0x38]
mov esi, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov dword [eax + esi*4], edx
mov edx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
inc edx
mov dword [esp + 0x10], edx
mov dword [ecx + edx*4], esi
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov dword [eax + edx*4], ecx
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ebp + 0x34]
push eax
mov eax, dword [ebp + 0x24]
push ecx
push edx
push esi
push eax
call fcn.00413220
add esp, 0x20
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x4c]
inc eax
inc edi
mov dword [ebp + 0x14], eax
inc ecx
lea eax, [edx - 1]
mov dword [ebp + 0x18], edi
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jl 0x4127c4
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
inc edi
inc ecx
dec eax
mov dword [ebp + 0x18], edi
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x4127b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret