Function at 0x479720
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ac4b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4cc99c]
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 edi, dword [ebp + 8]
test edi, edi
je 0x479967
push str.downloadfilepath
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004674a0
add esp, 0xc
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0
mov esi, 8
jbe 0x4797e3
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], esi
jae 0x479797
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.downloadfiledir
lea ecx, [ebp - 0x80]
push edi
push ecx
call fcn.004674a0
add esp, 0xc
cmp dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
jbe 0x4797ce
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x4797c5
lea eax, [ebp - 0x80]
push eax
call fcn.0045b690
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x6c], esi
jb 0x4797e3
mov edx, dword [ebp - 0x80]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00466e70
add esp, 8
cmp dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
jbe 0x47980e
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x479805
lea eax, [ebp - 0x48]
push eax
call fcn.0045b690
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
call fcn.00461050
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov byte [ebp - 4], 3
jb 0x47982f
mov ebx, dword [ebp - 0x64]
test ebx, ebx
jne 0x479832
xor eax, eax
jmp 0x47985c
lea ebx, [ebp - 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x479848
xor eax, eax
jmp 0x47985c
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00403550
mov ebx, 7
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x479876
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004027c0
push ebx
push str.image_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004026a0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4798a6
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004026a0
push 4
push 0x4b06e4
lea ecx, [ebp - 0x2c]
call fcn.004026a0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x4798de
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00478450
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp dword [ebp - 0x18], esi
jb 0x479905
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edi, edi
xor ecx, ecx
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jb 0x479925
mov edx, dword [ebp - 0x64]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x34], esi
jb 0x479944
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x88], esi
jb 0x479967
mov edx, dword [ebp - 0x9c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
lea esp, [ebp - 0xac]
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.00497792
mov esp, ebp
pop ebp
ret 4