Function at 0x4043d0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x40e9b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
push esi
mov ebp, ecx
mov eax, dword [esp + 0x460]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x450], ebx
mov dword [esp + 0x10], ebx
jne 0x404429
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x458]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov eax, dword [esp + 0x45c]
cmp eax, ebx
jne 0x404439
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4046a1
mov ecx, dword [esp + 0x10]
push edi
xor edi, edi
cmp ecx, ebx
jle 0x4044ca
mov ebx, eax
mov dl, byte [esp + 0x13]
mov esi, dword [ebx]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
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 esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x460], 1
call fcn.004062a0
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x458], 0
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_]
mov eax, dword [esp + 0x14]
inc edi
add ebx, 4
cmp edi, eax
jl 0x40445e
mov eax, dword [esp + 0x28]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x246]
mov word [esp + 0x244], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x244]
push 0x104
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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_]
lea ecx, [esp + 0x244]
mov byte [esp + 0x454], 2
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
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 0x40455f
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x244]
push esi
push edx
push eax
call fcn.00403cf0
add esp, 0xc
lea ecx, [esp + 0x18]
push esi
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__::_Eos_unsigned_int_]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x404582
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x3c]
push ebx
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea edx, [esp + 0x3c]
push 0x104
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x40462c
mov ecx, dword [ebp + 8]
sub ecx, eax
test ecx, 0xfffffff0
je 0x40462c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4045ca
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x3c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40462c
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
add esi, 0x10
cmp esi, ebx
je 0x404607
lea edi, [esi - 0x10]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
add esi, 0x10
add edi, 0x10
cmp esi, ebx
jne 0x4045ea
mov edi, dword [ebp + 8]
lea esi, [edi - 0x10]
cmp esi, edi
je 0x404621
push 0
mov ecx, esi
call fcn.00406720
add esi, 0x10
cmp esi, edi
jne 0x404611
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
xor ebx, ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
pop edi
cmp eax, ebx
jne 0x404638
xor ebp, ebp
jmp 0x404640
mov ebp, dword [ebp + 8]
sub ebp, eax
sar ebp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x404666
mov al, byte [ecx - 1]
test al, al
je 0x40465a
cmp al, 0xff
je 0x40465a
dec al
mov byte [ecx - 1], al
jmp 0x404666
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x45c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x40469d
mov al, byte [ecx - 1]
test al, al
je 0x404691
cmp al, 0xff
je 0x404691
dec al
mov byte [ecx - 1], al
mov eax, ebp
jmp 0x4046cc
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, ebp
jmp 0x4046cc
mov ecx, dword [esp + 0x45c]
cmp ecx, ebx
je 0x4046ca
mov al, byte [ecx - 1]
test al, al
je 0x4046be
cmp al, 0xff
je 0x4046be
dec al
mov byte [ecx - 1], al
jmp 0x4046ca
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x448]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret 0x10