Function at 0x4b1e60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcff7
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x564610]
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 eax, dword [ebp + 0xc]
test eax, eax
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, 1
je 0x4b1eb6
cmp eax, edi
je 0x4b1eb6
push 0x52738f
lea ecx, [esi + 0x48]
call dword [0x5096ec]
jmp 0x4b1fb3
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP80.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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x5153bc
lea ecx, [ebp - 0x234]
call dword [0x509758]
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP80.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_DeleteFileW]
push 1
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP80.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, ebx
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXHttpDownload::MoveDownloadFile_wchar_t_const___int_]
test eax, eax
je 0x4b1fa0
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x4b1fa0
mov edi, dword [ebx]
lea ecx, [ebp - 0x234]
add edi, 0x34
call dword [sym.imp.MSVCP80.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 eax, dword [edi]
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x398]
push ecx
call eax
lea ecx, [esi + 0x48]
push ecx
sub esp, 0x1c
lea eax, [esi + 0x14]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call dword [sym.imp.MSVCP80.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 ecx, esi
call fcn.004b1280
xor edi, edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ebx, [esi + 0x30]
push ebx
mov dword [ebp - 0x240], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x23c], 1
cmp dword [esi + 8], 0
mov dword [ebp - 4], 1
je 0x4b1ff8
sub esp, 0x1c
lea edx, [esi + 0x14]
mov ecx, esp
mov dword [ebp - 0x238], esp
push edx
call dword [sym.imp.MSVCP80.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 ecx, dword [esi + 8]
mov eax, dword [ecx]
mov edx, dword [eax]
push edi
call edx
jmp 0x4b2003
test edi, edi
jne 0x4b2003
mov ecx, esi
call fcn.004b1e10
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.004f019a
mov esp, ebp
pop ebp
ret 8