Function at 0x401dd1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
cmp eax, 0x1b
jl 0x401de9
push 2
pop eax
jmp 0x401df3
xor ecx, ecx
cmp eax, 0xa
setge cl
mov eax, ecx
xor ebx, ebx
mov dword [esi + 0x14], eax
cmp dword [esi + 0x7a84], ebx
mov dword [esi + 0x952c], ebx
mov dword [ebp - 8], ebx
jg 0x401e10
pop edi
pop esi
pop ebx
leave
ret
xor ebx, ebx
cmp dword [esi + 0x952c], 0xffffffff
je 0x401e09
push 4
mov ecx, esi
call 0x402046
cmp ax, bx
je 0x401e09
cmp ax, 1
jne 0x401f03
mov eax, dword [esi + 0x14]
mov ecx, esi
push dword [eax*4 + 0x45f3f8]
call 0x402046
movzx edi, ax
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
jle 0x40201c
lea eax, [edi - 2]
cmp dword [ebp - 4], eax
jge 0x401eaa
push 0xa
mov ecx, esi
call 0x402046
movzx edi, ax
mov eax, edi
push 0x64
cdq
pop ecx
lea ebx, [esi + 0x18]
idiv ecx
mov ecx, ebx
add al, 0x30
mov dword [ebp - 0x14], edx
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x14]
push 0xa
cdq
pop ecx
idiv ecx
mov ecx, ebx
add al, 0x30
push eax
call sub.MFC42.DLL_CString::operator
mov eax, edi
push 0xa
cdq
pop ecx
idiv ecx
mov ecx, ebx
add dl, 0x30
push edx
call sub.MFC42.DLL_CString::operator
mov edi, dword [ebp - 0xc]
jmp 0x401ef1
jne 0x401ed5
push 7
mov ecx, esi
call 0x402046
movzx eax, ax
push 0xa
lea edi, [esi + 0x18]
cdq
pop ecx
idiv ecx
mov ecx, edi
add al, 0x30
mov ebx, edx
push eax
call sub.MFC42.DLL_CString::operator
add bl, 0x30
mov ecx, edi
push ebx
jmp 0x401ea0
lea eax, [edi - 1]
cmp dword [ebp - 4], eax
jne 0x401ef1
push 4
mov ecx, esi
call 0x402046
add al, 0x30
lea ecx, [esi + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
add dword [ebp - 4], 3
cmp dword [ebp - 4], edi
jl 0x401e53
jmp 0x40201c
cmp ax, 2
jne 0x401f81
mov eax, dword [esi + 0x14]
mov ecx, esi
push dword [eax*4 + str._t_v_r_b]
call 0x402046
movzx edi, ax
cmp edi, ebx
mov dword [ebp - 4], ebx
jle 0x40201c
lea eax, [edi - 1]
mov ecx, esi
cmp dword [ebp - 4], eax
jge 0x401f5b
push 0xb
call 0x402046
movzx eax, ax
push 0x2d
cdq
pop ecx
idiv ecx
mov ecx, esi
push eax
mov dword [ebp - 0x14], edx
call fcn.004020d0
push eax
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x14]
jmp 0x401f63
push 6
call 0x402046
push eax
mov ecx, esi
call fcn.004020d0
lea ecx, [esi + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
add dword [ebp - 4], 2
cmp dword [ebp - 4], edi
jl 0x401f28
jmp 0x40201c
cmp ax, 4
jne 0x401fba
mov eax, dword [esi + 0x14]
mov ecx, esi
push dword [eax*4 + 0x45f410]
call 0x402046
movzx eax, ax
cmp eax, ebx
jle 0x40201c
lea edi, [esi + 0x18]
mov ebx, eax
push 8
mov ecx, esi
call 0x402046
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator
dec ebx
jne 0x401fa4
jmp 0x40201c
cmp ax, 0xd
jne 0x402033
mov eax, dword [esi + 0x14]
mov ecx, esi
push dword [eax*4 + 0x45f41c]
call 0x402046
movzx eax, ax
cmp eax, ebx
jle 0x40201c
lea edi, [esi + 0x18]
mov dword [ebp - 0xc], eax
push 0xd
mov ecx, esi
call 0x402046
movzx eax, ax
push 0x60
cdq
pop ecx
idiv ecx
shl al, 8
cmp al, 9
mov ebx, edx
ja 0x401ffd
add al, 0xa1
jmp 0x401fff
add al, 0xa6
mov byte [ebp - 0x10], al
mov ecx, edi
push dword [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
sub bl, 0x5f
mov ecx, edi
push ebx
call sub.MFC42.DLL_CString::operator
dec dword [ebp - 0xc]
jne 0x401fde
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x7a84]
jl 0x401e0e
jmp 0x401e09
push ebx
push ebx
push 0x40c050
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x952c]
cmp eax, 0xffffffff
je 0x4020bf
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 0x7a84]
shl edi, 3
lea edx, [eax + ecx]
cmp edx, edi
mov dword [ebp - 8], edx
jg 0x4020bf
test ecx, ecx
jle 0x4020b3
push ebx
mov ebx, eax
lea edi, [ecx - 1]
mov dword [ebp + 8], ecx
mov eax, ebx
push 8
cdq
pop ecx
idiv ecx
push 7
pop ecx
sub ecx, edx
xor edx, edx
mov al, byte [eax + esi + 0x8906]
inc edx
shl edx, cl
test al, dl
je 0x4020a8
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
or dword [ebp - 4], eax
inc ebx
dec edi
dec dword [ebp + 8]
jne 0x402081
mov edx, dword [ebp - 8]
pop ebx
mov ax, word [ebp - 4]
mov dword [esi + 0x952c], edx
jmp 0x4020ca
or dword [esi + 0x952c], 0xffffffff
or ax, 0xffff
pop edi
pop esi
leave
ret 4