Function at 0x4a6207
Capabilities:
Delete file

Disassembly:
mov eax, 0x4e754c
call fcn.004d1ec0
sub esp, 0x7c
mov eax, dword [0x52f220]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, 3
je 0x4a6231
cmp eax, 2
jne 0x4a624e
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x98]
jmp 0x4a6246
cmp dword [eax], ebx
je 0x4a624a
add eax, 4
cmp eax, ecx
jne 0x4a623f
cmp eax, ecx
jne 0x4a6255
xor al, al
jmp 0x4a63b4
push edi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x94]
call fcn.004a3c53
mov ecx, ebx
call fcn.004a73f4
test eax, eax
mov dword [ebp - 0x68], eax
je 0x4a6291
lea edi, [esi + 0xa4]
mov ecx, dword [edi]
push eax
call fcn.004a3f5a
mov ecx, dword [edi]
call fcn.004a450e
mov ecx, dword [ebp - 0x68]
call fcn.004a39bd
mov ecx, ebx
call fcn.004a6c7d
mov ecx, ebx
call fcn.004a6832
test eax, eax
je 0x4a639f
lea ecx, [ebp - 0x64]
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_void_]
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
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_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004a6832
push eax
call fcn.004a676e
pop ecx
pop ecx
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.004a6832
push eax
call sub.MSVCR71.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.00451e1a
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
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]
mov ecx, dword [esi + 0xa4]
push eax
call fcn.004a3492
push edi
lea ecx, [ebp - 0x2c]
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__::operator_wchar_t_]
cmp dword [ebp - 0x18], edi
jbe 0x4a6378
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x78], 0x414
mov dword [ebp - 0x72], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x6e], esi
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]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
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 - 0x64]
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_]
test ebx, ebx
pop edi
je 0x4a63b2
mov ecx, ebx
call fcn.004a70f0
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret 4