Function at 0x40f5a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x49f3b0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cdq
mov ecx, 3
idiv ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x40f622
mov ecx, 8
mov esi, str._function_NettoyerPar:_nbPts_4___
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x50]
push edx
push 0x48bcfc
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x48bd10
push 0x48bd24
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x83d
push 0x48bd30
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
jmp 0x40f644
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x24]
jge 0x40f671
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x18]
call fcn.004024a0
fcomp qword [0x48c150]
fnstsw ax
test ah, 5
jp 0x40f66f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x40f671
jmp 0x40f63b
cmp dword [ebp - 0x14], 0
jge 0x40f6c7
mov ecx, 8
mov esi, str._function_NettoyerPar:_iMin_0___
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x74]
push ecx
push 0x48bd60
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x48bd74
push 0x48bd88
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x851
push 0x48bd94
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov dword [ebp - 0x20], 0xffffffff
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
jmp 0x40f6df
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jle 0x40f70a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x18]
call fcn.004024a0
fcomp qword [0x48c150]
fnstsw ax
test ah, 5
jp 0x40f708
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
jmp 0x40f70a
jmp 0x40f6d6
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x14]
jg 0x40f768
mov ecx, 9
mov esi, str._function_NettoyerPar:_iMax_iMin___
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x9c]
push eax
push 0x48bdc8
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x48bddc
push 0x48bdf0
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x861
push 0x48bdfc
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0xc
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40f7ab
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jge 0x40f84c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0x28], 0
jne 0x40f7fe
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov edx, dword [ebp - 0xa0]
imul edx, edx, 0xc
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040f310
add esp, 0x10
test eax, eax
je 0x40f7fe
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0xc], 0
jne 0x40f839
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov edx, dword [ebp - 0xa0]
imul edx, edx, 0xc
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040f310
add esp, 0x10
test eax, eax
je 0x40f839
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x28], 0
je 0x40f847
cmp dword [ebp - 0xc], 0
je 0x40f847
jmp 0x40f84c
jmp 0x40f7a2
cmp dword [ebp - 0x28], 0
jne 0x40f889
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov edx, dword [ebp - 0x20]
imul edx, edx, 0xc
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
sub eax, 1
imul eax, eax, 0xc
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040f310
add esp, 0x10
test eax, eax
je 0x40f889
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
jne 0x40f8c6
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
mov eax, dword [ebp - 0x14]
add eax, 1
imul eax, eax, 0xc
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040f310
add esp, 0x10
test eax, eax
je 0x40f8c6
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x28], 0
jne 0x40f8d6
cmp dword [ebp - 0xc], 0
je 0x40fa02
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jle 0x40f8e4
cmp dword [ebp - 0x14], 0
jge 0x40f93b
mov ecx, 0xc
mov esi, str._function_NettoyerPar:_iMax_iMin____iMin_1____
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0xd8]
push edx
push 0x48be3c
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x48be50
push 0x48be64
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x89b
push 0x48be70
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x40f965
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xa4]
add edx, 1
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jg 0x40f994
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xa4]
imul edx, edx, 0xc
add edx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
jmp 0x40f94d
mov edx, dword [ebp - 0xa4]
imul edx, edx, 3
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0x7530
jl 0x40fa02
mov ecx, 0xb
mov esi, str._function_NettoyerPar:_Npar___NMAX_PAR____
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x104]
push edx
push 0x48bea8
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push str.decoupeZigZag.cxx
push 0x48bed0
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 0x8b5
push 0x48bedc
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
pop esi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0046f7be
mov esp, ebp
pop ebp
ret