Function at 0x4101b6
Capabilities:
Terminate process

Disassembly:
mov eax, 0x41353c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, 0x64
pop ecx
jne 0x4102d4
push edi
mov ecx, esi
call fcn.0040fe67
test eax, eax
je case.0x410365.67
push 4
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
push 5
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
push 6
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 4
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x410291
push ebx
push 0x1030
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax]
sub eax, 0x41
je 0x4102cd
dec eax
je 0x4102af
dec eax
dec eax
jne case.0x410365.67
mov dword [esi + 4], ebx
jmp 0x4103bb
push ebx
push 0x1034
push 0x477554
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 6
jne case.0x410365.67
jmp 0x4103b4
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
cmp eax, 0xc8
jne 0x410512
push edi
mov ecx, esi
call fcn.0040ffc4
test eax, eax
je case.0x410365.67
push 5
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
push 6
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x410353
push ebx
push 0x1030
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax]
add eax, 0xffffffbf
cmp eax, 8
ja case.0x410365.67
jmp dword [eax*4 + 0x41054b]
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
push ebx
push 0x1034
push 0x477554
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 6
jne case.0x410365.67
push 7
lea eax, [ebp + 8]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 7
call fcn.00411248
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004111d0
mov dword [esi + 4], 1
mov ecx, esi
call fcn.004106ee
jmp case.0x410365.67
push 7
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [esi + 4], ebx
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 8
call fcn.00411248
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004111d0
jmp 0x4103bb
push 1
pop eax
mov dword [0x242aa7c], eax
mov dword [0x47746c], eax
push 7
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 9
call fcn.00411248
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004111d0
push ebx
push ebx
push ebx
push ebx
push esi
push 0x40fb55
call sub.MFC42.DLL_AfxBeginThread
jmp case.0x410365.67
push 7
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [0x242aa7c], ebx
mov dword [0x47746c], 1
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0xa
call fcn.00411248
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x410424
push 7
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xb
call fcn.00411248
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004111d0
push ebx
push ebx
push ebx
push ebx
push esi
push 0x40f70a
jmp 0x410433
push 7
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [0x242aa7c], 1
mov dword [0x47746c], ebx
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0xc
call fcn.00411248
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
jmp 0x410424
push 7
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [0x242aa7c], ebx
mov dword [0x47746c], ebx
call fcn.00406ef1
add esp, 0xc
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0xd
call fcn.00411248
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
jmp 0x410424
cmp eax, 0x384
jne case.0x410365.67
mov dword [0x242aa80], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004111d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004111d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4