Function at 0x10002670
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019609
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x1002c070]
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 dword [ebp - 4], 2
cmp dword [ebp + 0x18], 0
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x10002850
cmp dword [ebp + 0x30], 0
je 0x10002850
cmp dword [ebp + 0x48], 0
je 0x10002850
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10004090
lea ecx, [ebp - 0x230]
call fcn.10004c00
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100027be
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
cmovae esi, dword [ebp - 0x230]
call fcn.100031d0
push ecx
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000a6c0
push dword [ebp + 0x48]
cmp dword [ebp + 0x4c], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp + 0x38]
cmovae eax, dword [ebp + 0x38]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100027a3
xorps xmm0, xmm0
movlpd qword [ebp - 0x238], xmm0
mov ebx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
jmp 0x1000283a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x7530
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x23c], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x230]
push eax
call fcn.10004090
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x234], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.10004090
mov byte [ebp - 4], 5
call dword [sym.imp.iHfCommon.dll_public:_static_class_CHfDownloadMgr____cdecl_oopa::CSingleton_class_CHfDownloadMgr_::GetInstance_void_]
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.iHfCommon.dll_public:_unsigned_long_long_unsigned___int64____thiscall_CHfDownloadMgr::StartDLTask_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____bool__unsigned_long_int_]
mov esi, eax
mov ebx, edx
cmp dword [ebp - 0x21c], 8
jb 0x10002856
push dword [ebp - 0x230]
call edi
add esp, 4
jmp 0x10002856
or esi, 0xffffffff
or ebx, 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x10002864
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x10002886
push dword [ebp + 0x20]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x100028a8
push dword [ebp + 0x38]
call edi
add esp, 4
mov edx, ebx
mov eax, esi
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.10016926
mov esp, ebp
pop ebp
ret 0x48