Function at 0x40d963
Capabilities:
Accept command line arguments

Disassembly:
push 0x220
mov eax, 0x4106d9
call fcn.0040f4d8
mov dword [ebp - 0x22c], ecx
xor edi, edi
mov dword [ebp - 0x224], 0x200922
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x40dc87
push 0x404218
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d9b2
mov dword [0x41498c], 1
push 0x40421c
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d9ce
mov dword [0x41498c], 1
push 0x404220
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40d9ea
mov dword [0x414a98], 1
push 0x404224
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40da06
mov dword [0x414a98], 1
push 0x404228
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40da2d
push ecx
lea edx, [ebp - 0x114]
mov ecx, eax
call fcn.0040d8de
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40da5c
push 0x40422c
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40db3d
push ecx
lea edx, [ebp - 0x114]
mov ecx, eax
call fcn.0040d8de
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40db3d
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]
cmp dword [eax - 8], 0
je 0x40db14
push 0x403528
push eax
call dword [sym.imp.msvcrt.dll_fopen]
pop ecx
pop ecx
test eax, eax
je 0x40db14
push eax
call dword [sym.imp.msvcrt.dll_fclose]
lea ecx, [ebp - 0x220]
mov dword [esp], 0x104
call dword [sym.imp.MFC42.dll_CString::GetBuffer]
push eax
mov edx, 0x104
mov ecx, 0x414990
call fcn.00404de1
test eax, eax
lea ecx, [ebp - 0x220]
push 0xffffffffffffffff
sets al
dec al
and byte [0x414990], al
call dword [sym.imp.MFC42.dll_CString::ReleaseBuffer]
mov dword [ebp - 0x21c], 1
jmp 0x40db1e
and dword [ebp - 0x21c], 0
push 2
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call dword [0x41512c]
cmp dword [ebp - 0x21c], 0
je 0x40dc87
jmp 0x40db4c
cmp dword [0x414a98], edi
je 0x40dc87
push 3
pop edi
test ebx, ebx
je 0x40dc87
cmp dword [0x414a98], 0
je 0x40dc94
push 0x404230
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40db86
push ecx
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040d8de
pop ecx
test eax, eax
jne 0x40dbb3
push 0x404234
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x40dc87
push ecx
lea edx, [ebp - 0x218]
mov ecx, eax
call fcn.0040d8de
pop ecx
test eax, eax
je 0x40dc87
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 0x40dc78
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.MFC42.dll_CString::Right]
push 0x404008
mov ecx, eax
call fcn.004048d9
lea ecx, [ebp - 0x228]
mov esi, eax
call dword [0x41512c]
test esi, esi
je 0x40dc43
push 0x404008
lea ecx, [ebp - 0x21c]
call dword [0x41525c]
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call dword [sym.imp.MFC42.dll_CString::CString]
call fcn.0040d745
pop ecx
test eax, eax
je 0x40dc78
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
add ecx, 0xc8
call dword [sym.imp.MFC42.dll_CString::operator]
jmp 0x40dc7b
xor edi, edi
inc edi
lea ecx, [ebp - 0x21c]
call dword [0x41512c]
cmp dword [0x414a98], 0
jne 0x40dc97
test ebx, ebx
je 0x40dc97
push 4
pop edi
mov eax, edi
call fcn.0040f475
ret