Function at 0x402b59
Capabilities:
Terminate process

Disassembly:
mov eax, 0x409612
call fcn.004090d0
sub esp, 0x44
push ebx
push esi
push edi
push 0x12
pop edi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
push 0xdc
mov dword [ebp - 0x10], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
and dword [ebp - 4], 0
test eax, eax
je 0x402bae
push fcn.00405178
mov dword [eax], edi
push fcn.0040514e
lea edi, [eax + 4]
push 0x12
push 0xc
push edi
call fcn.00409046
jmp 0x402bb0
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040514e
push dword [esi + 0x64]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 1
push dword [eax + 4]
push dword [ebp + 0xc]
call fcn.004019a9
mov esi, dword [ebp + 8]
sub esp, 0xc
mov eax, esp
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0xc], esp
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x50]
mov dword [eax], 0x40a29c
call fcn.004019dd
and dword [ebp + 0xc], 0
lea eax, [edi + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], eax
xor edi, edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
add eax, 0xfffffffd
push eax
lea eax, [edi - 7]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401a01
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
call fcn.00405178
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [ecx + edi], al
mov eax, dword [ebp - 0x20]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
inc edi
add ebx, 0xc
cmp edi, 3
jl 0x402c11
inc dword [ebp + 0xc]
add dword [ebp + 8], 3
cmp dword [ebp + 0xc], 6
mov eax, ebx
jl 0x402c0d
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov edi, dword [eax*4 + 0x45f2f0]
mov eax, dword [ebp - 0x10]
mov edx, edi
sar edx, cl
movzx eax, byte [ecx + eax]
xor eax, edx
push 2
cdq
pop ebx
idiv ebx
cmp edx, 1
jne 0x402ca5
inc dword [ebp + 0xc]
inc ecx
cmp ecx, 0x12
jl 0x402c8a
cmp dword [ebp + 0xc], 3
jle 0x402da0
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x21
jle 0x402c7b
mov ecx, dword [esi + 0x1c]
sub esp, 0xc
mov eax, esp
mov dword [ebp + 0xc], esp
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x20]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x50]
mov dword [eax], 0x40a29c
call fcn.004019dd
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
push dword [eax + 8]
call fcn.004019f7
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
lea eax, [esi - 7]
lea ecx, [ebp - 0x50]
push eax
lea eax, [ebx - 3]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401a01
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
call fcn.00405178
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x1c]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + esi], al
mov eax, dword [ebp - 0x20]
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
inc esi
add edi, 0x24
cmp esi, 3
jl 0x402d01
add dword [ebp + 0x10], 0xc
add dword [ebp + 0xc], 3
inc ebx
cmp ebx, 6
jl 0x402cfc
xor esi, esi
mov edi, dword [esi*4 + 0x45f2f0]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov edx, edi
sar edx, cl
movzx eax, byte [ecx + eax]
xor eax, edx
push 2
cdq
pop ebx
idiv ebx
cmp edx, 1
jne 0x402d8c
inc dword [ebp + 0xc]
inc ecx
cmp ecx, 0x12
jl 0x402d71
cmp dword [ebp + 0xc], 3
jle 0x402da8
inc esi
cmp esi, 0x21
jle 0x402d65
jmp 0x402dd6
mov eax, dword [ebp + 8]
lea esi, [eax + 7]
jmp 0x402dab
add esi, 7
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040199b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00405178
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
xor esi, esi
push esi
push esi
push 0x40c060
call sub.MFC42.DLL_AfxMessageBox
push esi
call dword [sym.imp.MSVCRT.dll_exit]