Function at 0x402deb
Capabilities:
Terminate process

Disassembly:
mov eax, 0x409651
call fcn.004090d0
sub esp, 0x88
mov al, byte [ebp + 0xf]
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
dec eax
cmp eax, ecx
jle 0x402faa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov edi, 0x40a2ac
lea esi, [eax + 4]
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10], eax
jge 0x402f7d
add esi, 0x18
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov ecx, dword [esi - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], edi
sub esp, 0x14
mov eax, esp
mov dword [ebp + 8], esp
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x10], ecx
mov dword [eax], edi
sub esp, 0x14
lea eax, [ebp - 0x54]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
mov byte [ebp - 4], 3
call fcn.00403073
lea ecx, [ebx + 4]
mov byte [ebp - 4], 2
call fcn.00404db6
test al, al
je 0x402f5f
lea ecx, [ebp - 0x54]
call fcn.00404d9e
test al, al
je 0x402efd
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x54]
push eax
call fcn.00405053
mov ebx, dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.00405178
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x40]
push eax
call fcn.00405053
lea ecx, [ebp - 0x64]
jmp 0x402f29
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00405053
mov ebx, dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.00405178
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x54]
push eax
call fcn.00405053
lea ecx, [ebp - 0x94]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
call fcn.00405178
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ebx
call fcn.0040515f
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00404277
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00405178
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404b34
mov ebx, dword [ebp - 0x2c]
add esi, 0x14
dec dword [ebp - 0x28]
jne 0x402e67
mov esi, dword [ebp - 0x24]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00404b34
add esi, 0x14
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], esi
lea ecx, [eax - 1]
mov eax, dword [ebp + 0xc]
dec eax
cmp ecx, eax
jl 0x402e38
cmp dword [ebp - 0x1c], 0
jne 0x402fae
xor eax, eax
jmp 0x402fba
mov eax, dword [ebp - 0x18]
push 0xc
sub eax, dword [ebp - 0x1c]
pop ecx
cdq
idiv ecx
xor esi, esi
mov dword [ebx + 0x38], eax
cmp dword [ebp - 0x1c], esi
je 0x402fd2
mov eax, dword [ebp - 0x18]
push 0xc
sub eax, dword [ebp - 0x1c]
pop ecx
cdq
idiv ecx
mov esi, eax
lea eax, [esi + esi*2]
lea eax, [eax*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x403008
push fcn.00405178
push fcn.0040514e
lea edi, [eax + 4]
push esi
push 0xc
push edi
mov dword [eax], esi
call fcn.00409046
jmp 0x40300a
xor edi, edi
and byte [ebp - 4], 0
xor edx, edx
xor esi, esi
cmp dword [ebx + 0x38], edx
mov dword [ebx + 0x34], edi
jle 0x40303a
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax]
mov eax, dword [ebx + 0x34]
add eax, edx
inc esi
mov edi, dword [ecx + 4]
add edx, 0xc
mov dword [eax + 4], edi
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
cmp esi, dword [ebx + 0x38]
jl 0x40301a
cmp dword [ebx + 0x38], 3
je 0x403056
push 0
push 0
push str.Invalid_number_of_Finder_Pattern_detected
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.MSVCRT.dll_exit]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404242
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8