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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549827
mov eax, dword fs:[0]
push eax
mov eax, 0x20a8
call fcn.0046f430
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.004efc10
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1010], dx
push 0x7fe
push 0
lea eax, [ebp - 0x100e]
push eax
call fcn.004efc10
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x1810], cx
push 0x7fe
push 0
lea edx, [ebp - 0x180e]
push edx
call fcn.004efc10
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x20ac], eax
push 0
push 0x10
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x20b0], eax
push 0
push 0
lea edx, [ebp - 0x1810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x20b4], eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x2028]
call fcn.00403f40
mov dword [ebp - 4], 0
push 0x59e174
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e178
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e194
lea ecx, [ebp - 0x2028]
call fcn.00405910
lea ecx, [ebp - 0x2028]
call fcn.00401be0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x2028]
call fcn.00406480
push 0x59e1a0
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e1a4
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e1c0
lea ecx, [ebp - 0x2028]
call fcn.00405910
lea ecx, [ebp - 0x2028]
call fcn.00401be0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x1810]
push edx
lea ecx, [ebp - 0x2028]
call fcn.00406480
push 0x59e1cc
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e1d0
lea ecx, [ebp - 0x2028]
call fcn.00405910
push 0x59e1ec
lea ecx, [ebp - 0x2028]
call fcn.00405910
lea ecx, [ebp - 0x2028]
call fcn.00401be0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x20a1], 0
lea ecx, [ebp - 0x2040]
call fcn.00401ce0
mov byte [ebp - 4], 1
cmp dword [0x5aacb8], 0
je 0x41737d
mov eax, dword [0x5aacb8]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x2040]
call fcn.00401c20
push 0x59e1f8
lea ecx, [ebp - 0x2040]
call fcn.00405910
push 0x59e1fc
lea ecx, [ebp - 0x2040]
call fcn.00405910
xor ecx, ecx
mov word [ebp - 0x2010], cx
push 0x7fe
push 0
lea edx, [ebp - 0x200e]
push edx
call fcn.004efc10
add esp, 0xc
push 0x3ff
lea ecx, [ebp - 0x2040]
call fcn.00401be0
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.004fcb5f
add esp, 0xc
lea ecx, [ebp - 0x2058]
push ecx
call fcn.00417070
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2058]
call fcn.00401bb0
movzx edx, al
test edx, edx
je 0x417448
mov al, byte [ebp - 0x20a1]
mov byte [ebp - 0x20a3], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2058]
call fcn.00401c90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2040]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2028]
call fcn.00401c90
mov al, byte [ebp - 0x20a3]
jmp 0x4175b8
cmp dword [0x5aacb8], 0
je 0x4174b8
push 0x59e220
lea ecx, [ebp - 0x2058]
push ecx
lea edx, [ebp - 0x20a0]
push edx
call fcn.004065e0
add esp, 0xc
mov dword [ebp - 0x20a8], eax
mov eax, dword [ebp - 0x20a8]
push eax
mov ecx, dword [0x5aacb8]
add ecx, 0x34
call fcn.00403d60
lea ecx, [ebp - 0x20a0]
call fcn.00401c90
push 0x59e224
mov ecx, dword [0x5aacb8]
add ecx, 0x34
call fcn.00405910
push 0x59e240
mov ecx, dword [0x5aacb8]
add ecx, 0x34
call fcn.00405910
push 0x59e24c
lea ecx, [ebp - 0x2058]
push ecx
lea edx, [ebp - 0x2070]
push edx
call fcn.004065e0
add esp, 0xc
mov byte [ebp - 4], 3
push 0x59e250
lea ecx, [ebp - 0x2070]
call fcn.00405910
push 0x59e26c
lea ecx, [ebp - 0x2070]
call fcn.00405910
lea ecx, [ebp - 0x2070]
call fcn.00401be0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2088]
call fcn.00403f40
mov byte [ebp - 4], 4
mov ecx, dword [0x5aacb8]
add ecx, 0x34
push ecx
lea edx, [ebp - 0x2088]
push edx
call fcn.00416da0
add esp, 8
test eax, eax
je 0x417545
mov byte [ebp - 0x20a2], 1
jmp 0x41754c
mov byte [ebp - 0x20a2], 0
mov al, byte [ebp - 0x20a2]
mov byte [ebp - 0x20a1], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2088]
call fcn.00401c90
mov cl, byte [ebp - 0x20a1]
mov byte [ebp - 0x20a4], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2070]
call fcn.00401c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2058]
call fcn.00401c90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2040]
call fcn.00401c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2028]
call fcn.00401c90
mov al, byte [ebp - 0x20a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret