Function at 0x4018c0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4093f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov al, byte [esp + 0x50]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x20], al
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 1
push ecx
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x401985
mov dl, byte [esp + 0x60]
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Invalid_args
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x34]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401976
mov edi, dword [esp + 0x34]
mov ecx, ebx
mov eax, ecx
mov esi, str.Invalid_args
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ebx
mov byte [ecx + ebx], 0
lea edx, [esp + 0x30]
push 0x40a3f0
push edx
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp ecx, ebp
jbe 0x401a76
mov ebx, eax
mov al, byte [esp + 0x60]
mov edi, dword [ebx]
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x30]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x4019e4
mov ecx, dword [esp + 0x34]
push esi
push edi
push ecx
call fcn.00401b30
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], esi
add esp, 0xc
mov word [edx + esi*2], bp
lea eax, [esp + 0x30]
push ebp
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x64], 2
call fcn.004071a0
add esp, 0xc
mov edx, dword [esp + 0x28]
push eax
push 1
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 3
call fcn.00401de0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x58], 1
cmp ecx, ebp
je 0x401a4e
mov al, byte [ecx - 1]
test al, al
je 0x401a42
cmp al, 0xff
je 0x401a42
dec al
mov byte [ecx - 1], al
jmp 0x401a4e
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], eax
jb 0x401997
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov al, byte [esp + 0x20]
cmp ecx, ebp
mov byte [ebx], al
jne 0x401a93
xor eax, eax
jmp 0x401a9c
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jge 0x401aa2
xor eax, eax
shl eax, 4
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ecx
mov ebp, ecx
mov edi, eax
je 0x401adf
push edi
push esi
call fcn.004020a0
add edi, 0x10
add esp, 8
add esi, 0x10
cmp edi, ebp
jne 0x401ac3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [esp + 0x1c], 1
cmp eax, ecx
mov byte [esp + 0x58], 0
mov edi, ecx
mov esi, eax
je 0x401b0e
push 0
mov ecx, esi
call fcn.00402220
add esi, 0x10
cmp esi, edi
jne 0x401afa
mov eax, dword [esp + 0x24]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x54]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret