Function at 0x407e17
Capabilities:
Terminate process

Disassembly:
mov eax, 0x409b58
call fcn.004090d0
sub esp, 0x150
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00408d5c
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.0040514e
mov eax, esi
mov byte [ebp - 4], 1
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
test esi, esi
pop ecx
mov dword [edi + 8], eax
jle 0x407e6f
push esi
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, dword [edi + 8]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, esi
jl 0x407e5d
and dword [ebp - 0x10], 0
lea ecx, [ebp + 8]
call fcn.00408d28
test eax, eax
jle 0x40824e
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.00408d28
test eax, eax
jle 0x40823a
push dword [ebp - 0x10]
and dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
push ebx
call fcn.00408d44
test eax, eax
jle 0x408226
push dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
lea ecx, [ebp + 8]
push ebx
call fcn.00408d2c
test eax, eax
jle 0x40820e
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd0]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408c65
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00404bb6
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
call fcn.00405178
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x1c]
lea eax, [ebp - 0xf8]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408c65
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.00404bb6
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x30], eax
call fcn.00405178
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x1c]
lea eax, [ebp - 0x148]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408c65
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00404bd3
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x80]
call fcn.00405178
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x1c]
lea eax, [ebp - 0x120]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408c65
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00404bd3
mov edi, dword [eax + 8]
lea ecx, [ebp - 0xb0]
call fcn.00405178
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0xe4]
lea ecx, [ebp + 8]
push eax
call fcn.00408cc6
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00404bb6
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x38], eax
call fcn.00405178
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x14]
lea eax, [ebp - 0x10c]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408cc6
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call fcn.00404bb6
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], eax
call fcn.00405178
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x14]
lea eax, [ebp - 0x134]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push ebx
push eax
call fcn.00408cc6
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call fcn.00404bd3
mov ebx, dword [eax + 4]
lea ecx, [ebp - 0x8c]
call fcn.00405178
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.00404b34
push dword [ebp - 0x14]
lea eax, [ebp - 0x15c]
lea ecx, [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push eax
call fcn.00408cc6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.00404bd3
mov eax, dword [eax + 8]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x28], eax
call fcn.00405178
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 1
call fcn.00404b34
mov eax, dword [ebp - 0x38]
mov ecx, edi
sub eax, ebx
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x40]
imul edi, dword [ebp - 0x40]
sub edx, esi
imul esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
imul ebx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x34]
sub edi, esi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
imul esi, dword [ebp - 0x38]
imul ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
imul edx, eax
sub esi, ebx
mov dword [ebp - 0x20], eax
sub ecx, edx
mov edx, esi
imul edx, dword [ebp - 0x44]
imul esi, dword [ebp - 0x24]
mov eax, edi
imul edi, dword [ebp - 0x20]
imul eax, dword [ebp - 0x3c]
sub eax, edx
sub esi, edi
cdq
idiv ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov edi, eax
mov eax, esi
cdq
idiv ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov edi, dword [eax + edi*4]
call fcn.00408d81
push dword [ebp - 0x14]
mov esi, dword [esi + 8]
lea ecx, [ebp + 8]
mov ebx, eax
push dword [ebp - 0x10]
call fcn.00408da4
mov ecx, dword [esi + ebx*4]
mov esi, dword [ebp - 0x20]
mov dl, byte [esi + edi]
mov byte [eax + ecx], dl
lea ecx, [ebp + 8]
call fcn.00408d28
mov edi, dword [ebp - 0x10]
dec eax
cmp edi, eax
jne 0x4081f0
lea ecx, [ebp + 8]
call fcn.00408d28
dec eax
cmp dword [ebp - 0x18], eax
jne 0x4081f0
push edi
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
call fcn.00408d44
dec eax
cmp dword [ebp - 0x14], eax
jne 0x4081f0
push edi
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
call fcn.00408d2c
dec eax
cmp dword [ebp - 0x1c], eax
jne 0x4081f0
push esi
lea ecx, [ebp - 0x68]
push dword [ebp - 0x24]
call fcn.0040515f
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x48], eax
call fcn.00405178
inc dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.00408d2c
cmp dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
jl 0x407ec8
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x10]
inc dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ebx
call fcn.00408d44
cmp dword [ebp - 0x14], eax
jl 0x407eb0
inc ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.00408d28
cmp ebx, eax
jl 0x407e98
inc dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.00408d28
cmp dword [ebp - 0x10], eax
jl 0x407e83
mov eax, dword [edi + 0x1c]
dec eax
cmp dword [ebp - 0x4c], eax
jg 0x408289
mov eax, dword [edi + 0x20]
dec eax
cmp dword [ebp - 0x48], eax
jg 0x408289
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00405178
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004089b1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
xor esi, esi
push esi
push esi
push str.Sampling_grid_pointed_out_of_image
call sub.MFC42.DLL_AfxMessageBox
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push esi
mov esi, ecx
call fcn.004082ba
test byte [esp + 8], 1
je 0x4082b4
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, esi
pop esi
ret 4