Function at 0x40d461
Capabilities:
Accept command line arguments

Disassembly:
push 0x220
mov eax, 0x40fe1f
call fcn.0040eec2
mov dword [ebp - 0x22c], ecx
xor edi, edi
mov dword [ebp - 0x21c], 1
xor ebx, ebx
mov dword [ebp - 0x224], 0x200922
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x40d793
push 0x404208
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d4ba
mov dword [0x41398c], 1
push 0x40420c
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d4d6
mov dword [0x41398c], 1
push 0x404210
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d4f2
mov dword [0x413a98], 1
push 0x404214
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d50e
mov dword [0x413a98], 1
push 0x404218
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d535
push ecx
lea edx, [ebp - 0x114]
mov ecx, eax
call fcn.0040d3e2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40d564
push 0x40421c
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d640
push ecx
lea edx, [ebp - 0x114]
mov ecx, eax
call fcn.0040d3e2
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40d640
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42.dll_CString::CString_1]
and dword [ebp - 4], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42.dll_CString::operator_1]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42.dll_CString::TrimRight]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42.dll_CString::TrimLeft]
mov eax, dword [ebp - 0x220]
and dword [ebp - 0x21c], 0
cmp dword [eax - 8], 0
je 0x40d5e4
push 0x403518
push eax
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
test eax, eax
je 0x40d5e4
push eax
mov dword [ebp - 0x21c], 1
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
cmp dword [ebp - 0x21c], 0
je 0x40d62b
push 0x104
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC42.dll_CString::GetBuffer]
push eax
mov edx, 0x104
mov ecx, 0x413990
call fcn.00404c41
test eax, eax
lea ecx, [ebp - 0x220]
push 0xffffffffffffffff
sets al
dec al
and byte [0x413990], al
call dword [sym.imp.MFC42.dll_CString::ReleaseBuffer]
jmp 0x40d62e
push 2
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call dword [0x41412c]
jmp 0x40d64b
cmp dword [0x413a98], edi
je 0x40d658
push 3
pop edi
cmp dword [ebp - 0x21c], 0
je 0x40d793
test ebx, ebx
je 0x40d793
cmp dword [0x413a98], 0
je 0x40d79c
push 0x404220
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d692
push ecx
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040d3e2
pop ecx
test eax, eax
jne 0x40d6bf
push 0x404224
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d793
push ecx
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040d3e2
pop ecx
test eax, eax
je 0x40d793
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42.dll_CString::CString_2]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42.dll_CString::TrimLeft]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42.dll_CString::TrimRight]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], 0
je 0x40d784
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42.dll_CString::Right]
push 0x403ff8
mov ecx, eax
call fcn.00404793
lea ecx, [ebp - 0x228]
mov esi, eax
call dword [0x41412c]
test esi, esi
je 0x40d74f
push 0x403ff8
lea ecx, [ebp - 0x21c]
call dword [0x41425c]
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call dword [sym.imp.MFC42.dll_CString::CString]
call fcn.0040d26c
pop ecx
test eax, eax
je 0x40d784
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
add ecx, 0xc8
call dword [sym.imp.MFC42.dll_CString::operator]
jmp 0x40d787
xor edi, edi
inc edi
lea ecx, [ebp - 0x21c]
call dword [0x41412c]
cmp dword [0x413a98], 0
jne 0x40d7a3
test ebx, ebx
je 0x40d7a3
push 4
pop edi
mov eax, edi
call fcn.0040ee71
ret