Function at 0x402a60
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x40c717
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov ebx, 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], ebx
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x1c]
push 0x20
lea ecx, [esp + 0x20]
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402ae3
mov esi, dword [esp + 0x54]
push 0x410774
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20], ebx
jmp 0x402e79
sub esi, ebp
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4100e0
push edx
call esi
add esp, 8
test eax, eax
jne 0x402cac
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x24]
push 0x20
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
jne 0x402b87
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], ebx
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x24]
jmp 0x402e67
sub esi, eax
lea eax, [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x48]
push eax
push ecx
push edx
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_AfxParseURL
test eax, eax
jne 0x402c39
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x4c], 5
call fcn.0040beac
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 4
call fcn.0040beac
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call fcn.0040beac
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x24]
jmp 0x402e67
lea edx, [edi + 0x190]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x4c], 5
call fcn.0040beac
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 4
call fcn.0040beac
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call fcn.0040beac
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x24]
jmp 0x402e67
mov edx, dword [esp + 0x18]
push str._xljz
push edx
call esi
add esp, 8
test eax, eax
jne 0x402cd8
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], ebx
jmp 0x402e6c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x12]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
mov byte [esp + 0x60], 8
call sub.MFC42.DLL_AfxParseURL
test eax, eax
jne 0x402e3c
push str..exe
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x402d40
push str..EXE
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x402d67
lea edx, [edi + 0x12c]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x14]
push 0x20
lea ecx, [esp + 0x18]
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
jne 0x402db6
mov esi, dword [esp + 0x54]
push 0x410774
mov ecx, esi
call sub.MFC42.DLL_CString::CString
jmp 0x402e28
sub esi, eax
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 9
call fcn.0040beac
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x12]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x402da4
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x4c], 8
call fcn.0040beac
jmp 0x402e50
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 7
call fcn.0040beac
mov byte [esp + 0x4c], 2
lea ecx, [esp + 0x30]
call fcn.0040beac
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call fcn.0040beac
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 0
call fcn.0040beac
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4