Function at 0x40f482
Capabilities:
Set current directory

Disassembly:
mov eax, 0x412ec1
call fcn.004114d0
sub esp, 0x2c4
mov eax, dword [0x4211a4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push 1
xor eax, ebp
push ecx
mov dword [ebp - 0x10], eax
mov eax, str.void___thiscall_CCmdReceiverWnd::OnShellCommand_const_wchar_t__
push eax
push 0x419c28
mov dword [ebp - 0x270], ecx
push eax
lea ecx, [ebp - 0x2d0]
call fcn.00406666
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
mov esi, eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov edi, eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___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 - 0x274]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::iterator___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
push dword [sym.imp.MSVCR71.dll_tolower]
push dword [edi]
push dword [ebx]
push dword [eax]
lea eax, [ebp - 0x278]
push eax
call fcn.00402d63
add esp, 0x14
push str._quitshell
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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 0x40f56d
push eax
push eax
mov eax, dword [ebp - 0x270]
push 0x10
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40f7b0
test esi, esi
jle 0x40f7b0
push 0
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x22
jne 0x40f7b0
push 1
push 0x418aa0
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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 0x40f7b0
lea eax, [edi - 1]
push eax
push 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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
dec esi
dec esi
push esi
add edi, 2
push edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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 esi, 0x419bd0
push esi
call fcn.004023cd
test eax, eax
pop ecx
jne 0x40f6ac
push 1
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.MSVCP71.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
push str.__param_:
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP71.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
push str._path_:
push dword [ebp - 0x270]
push esi
call fcn.00405b88
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bd19
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, esi
call fcn.0040a80a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
call fcn.0040bd19
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, esi
call fcn.0040a80a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
call fcn.0040bce8
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
test eax, eax
jbe 0x40f790
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::length_void_const]
test eax, eax
jbe 0x40f790
and word [ebp - 0x218], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [ebp - 0x250]
stosw word es:[edi], ax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
push 0x41930c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40f790
push str.ShellCommand
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40f789
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x270]
call fcn.004099d4
mov byte [ebp - 4], 8
push dword [eax]
call esi
mov byte [ebp - 4], 3
push dword [ebp - 0x270]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MSVCP71.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.MSVCP71.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.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d0]
call fcn.004068e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113e5
leave
ret 4