Function at 0x403300
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421672
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x274], esi
mov ebx, edx
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x270], ebp
mov eax, dword [ebp - 0x270]
push 0
push eax
push 0x424a00
call fcn.00417080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403369
mov edi, str.void___thiscall_CCmdReceiverWnd::OnShellCommand_const_wchar_t__
push esi
push edi
mov edx, str.void___thiscall_CCmdReceiverWnd::OnShellCommand_const_wchar_t__
mov ecx, 0x424ad0
lea esi, [ebp - 0x2ac]
call fcn.0040c280
mov dword [ebp - 4], 0
test edi, edi
jne 0x40338d
push ebp
pop ebp
push ebx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x234]
mov edi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::end_void_]
mov ebx, eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
mov eax, dword [sym.imp.MSVCR90.dll_tolower]
push ecx
push edx
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00407180
add esp, 0x20
push str._quitshell
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::compare_wchar_t_const__const]
test eax, eax
jne 0x403439
mov edx, dword [ebp - 0x274]
push eax
push eax
mov eax, dword [edx + 4]
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x403673
test esi, esi
jle 0x403673
mov eax, dword [ebp - 0x230]
mov ebx, 8
cmp dword [ebp - 0x21c], ebx
jae 0x40345a
lea eax, [ebp - 0x230]
cmp word [eax], 0x22
jne 0x403673
push 1
push 0x424b2c
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov edi, eax
test edi, edi
jle 0x403673
lea ecx, [edi - 1]
push ecx
push 1
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 2
sub esi, edi
sub esi, 2
push esi
add edi, 2
push edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 3
mov ecx, str.CCmdReceiverWnd::OnShellCommand
call fcn.0040bd20
test eax, eax
jne 0x40355e
sub esp, 0x1c
lea edx, [ebp - 0x26c]
mov ecx, esp
mov dword [ebp - 0x280], esp
push edx
lea edi, [eax + 1]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 4
sub esp, 0x1c
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
mov ebx, str.__param_:
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x274]
push ecx
mov ecx, str.CCmdReceiverWnd::OnShellCommand
call fcn.00411ce0
mov edx, str._path_:
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov byte [ebp - 4], 4
mov esi, eax
call fcn.0040b720
push ecx
mov edx, ebx
mov ecx, eax
call fcn.0040ba10
add esp, 4
mov byte [ebp - 4], 3
mov esi, eax
call fcn.0040b720
mov ecx, edi
call fcn.0040bcf0
lea ebx, [edi + 7]
cmp dword [ebp - 0x23c], 0
jbe 0x403653
cmp dword [ebp - 0x258], 0
jbe 0x403653
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp dword [ebp - 0x238], ebx
jae 0x4035aa
lea eax, [ebp - 0x24c]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
push 0x422e28
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
jae 0x4035f3
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403653
push str.ShellCommand
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40364c
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x403627
lea eax, [ebp - 0x268]
lea esi, [ebp - 0x274]
call fcn.0040b890
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
call edi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.0040bfc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4d2
mov esp, ebp
pop ebp
ret