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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494796
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x460], ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4177b9
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x424], 0x80004005
mov dword [ebp - 0x430], 0
lea ecx, [ebp - 0x428]
call fcn.004172a0
mov dword [ebp - 4], 0
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004726b0
add esp, 0xc
mov dword [ebp - 0x448], 0
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.004726b0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x41787c
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00417490
mov eax, dword [ebp - 0x44c]
jmp 0x417ac7
lea ecx, [ebp - 0x428]
call fcn.0041f3d0
push eax
push 0x49cc40
push 1
push 0
push 0x49cc70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jl 0x417aa3
lea ecx, [ebp - 0x428]
call fcn.0041ef60
push eax
lea ecx, [ebp - 0x42c]
call fcn.004172e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.0041ef60
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
call edx
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jge 0x41793d
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004174e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00417490
mov eax, dword [ebp - 0x450]
jmp 0x417ac7
cmp dword [ebp + 0xc], 0
je 0x41794e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x438], ecx
jmp 0x417958
mov dword [ebp - 0x438], 0x498d74
lea ecx, [ebp - 0x428]
call fcn.0041ef60
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jge 0x4179cb
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x454], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004174e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00417490
mov eax, dword [ebp - 0x454]
jmp 0x417ac7
cmp dword [ebp + 0x14], 0
je 0x417a43
lea ecx, [ebp - 0x428]
call fcn.0041ef60
mov dword [ebp - 0x440], eax
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x440]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jge 0x417a43
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x458], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004174e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00417490
mov eax, dword [ebp - 0x458]
jmp 0x417ac7
push 0x104
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.0047aefe
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.0041ef60
mov dword [ebp - 0x444], eax
push 1
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x444]
push edx
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.004174e0
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00417490
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret 0x10