Function at 0x40190f
Capabilities:
Terminate process

Disassembly:
mov eax, 0x40950f
call fcn.004090d0
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 1
cmp eax, ebx
jl 0x4018fc
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jl 0x4018fc
mov ecx, dword [esi + 0xc]
dec ecx
cmp eax, ecx
jg 0x4018fc
mov ecx, dword [esi + 0x10]
dec ecx
cmp edi, ecx
jg 0x4018fc
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
cmp byte [edi + ecx], bl
jne 0x4017ee
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x20]
inc ecx
dec dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
jmp 0x4017df
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add ecx, eax
add edx, edi
test ecx, ecx
jl 0x401801
test edx, edx
jl 0x401801
mov ebx, dword [esi + 0xc]
dec ebx
cmp ecx, ebx
jg 0x401801
mov ebx, dword [esi + 0x10]
dec ebx
cmp edx, ebx
jg 0x401801
mov ebx, dword [esi + 8]
mov ebx, dword [ebx + ecx*4]
cmp byte [edx + ebx], 1
jne 0x4017ce
push edx
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040515f
mov ecx, dword [eax + 4]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x34]
mov dword [ebp + 0x14], eax
call fcn.00405178
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0xd], 1
dec dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jg 0x401778
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jg 0x401772
cmp byte [ebp - 0xd], 0
je 0x401763
mov dword [ebp - 0x20], eax
mov ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
cmp eax, 1
jmp 0x401835
xor esi, esi
push esi
push esi
push str.Alignment_Pattern_finder_exceeded_out_of_image
call sub.MFC42.DLL_AfxMessageBox
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp - 0x1c]
lea eax, [ecx - 1]
push eax
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call 0x40190f
test al, al
jne 0x40183a
mov eax, dword [ebp - 0x24]
dec eax
mov ecx, eax
cmp ecx, 1
mov dword [ebp - 0x24], ecx
jge 0x401816
mov ecx, dword [ebp - 0x20]
jmp 0x40185e
push dword [ebp - 0x1c]
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call 0x40190f
test al, al
jne 0x401866
mov eax, dword [ebp - 0x20]
inc eax
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0xc]
dec eax
cmp ecx, eax
jl 0x40183f
mov ecx, dword [ebp - 0x14]
jmp 0x40188a
lea eax, [ecx - 1]
push eax
push dword [ebp - 0x18]
push ecx
mov ecx, esi
push dword [ebp - 0x18]
call 0x40190f
test al, al
jne 0x4018a8
mov eax, dword [ebp - 0x14]
dec eax
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 1
jge 0x40186b
jmp 0x4018a8
lea eax, [edi + 1]
mov ecx, esi
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x18]
call 0x40190f
test al, al
jne 0x4018b0
inc edi
mov eax, dword [esi + 0x10]
dec eax
cmp edi, eax
jl 0x401891
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea eax, [edi + eax + 1]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x20]
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0040515f
mov dword [ebp - 0x28], 1
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00405178
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
push ebx
push ebx
push str.Alignment_Pattern_finder_exceeded_out_of_image
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jl 0x40196a
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x40196a
cmp dword [ebp + 0x10], 0
jl 0x40196a
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jl 0x40196a
mov edx, dword [ecx + 0xc]
cmp edi, edx
jg 0x40196a
mov eax, dword [ecx + 0x10]
cmp esi, eax
jg 0x40196a
cmp dword [ebp + 0x10], edx
jg 0x40196a
cmp ebx, eax
jg 0x40196a
mov eax, dword [ecx + 8]
mov ecx, dword [eax + edi*4]
cmp byte [esi + ecx], 0
jne 0x401961
mov ecx, dword [ebp + 0x10]
mov ecx, dword [eax + ecx*4]
xor eax, eax
inc eax
cmp byte [ebx + ecx], al
je 0x401963
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
xor esi, esi
push esi
push esi
push str.Alignment_Pattern_finder_exceeded_out_of_image
call sub.MFC42.DLL_AfxMessageBox
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push esi
mov esi, ecx
call fcn.0040199b
test byte [esp + 8], 1
je 0x401995
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, esi
pop esi
ret 4