Function at 0x4edd70
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57976a
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xa8], 0
xor eax, eax
mov dword [ebp - 0xa7], eax
mov dword [ebp - 0xa3], eax
mov byte [ebp - 0x9f], al
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x118]
push edx
push 0x59be20
lea eax, [ebp - 0xa8]
push eax
call fcn.004b6c4f
add esp, 0xc
mov byte [ebp - 0x9c], 0
push 0x63
push 0
lea ecx, [ebp - 0x9b]
push ecx
call fcn.004b6500
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0xe0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push edx
call fcn.004017b0
mov dword [ebp - 0x394], eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.00441f30
add esp, 0x20
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x398]
mov dword [ebp - 0x39c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x39c]
call fcn.004048a0
push eax
push 0x59be24
lea edx, [ebp - 0x9c]
push edx
call fcn.004b6c4f
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e4]
call fcn.00404950
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405220
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xac], 0
jmp 0x4edeb2
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 3
jge 0x4edf67
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
lea edx, [ebp - 0x300]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3a4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401830
push eax
lea edx, [ebp - 0x31c]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp - 0x3a8]
mov dword [ebp - 0x3ac], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3ac]
push ecx
call fcn.005608c0
add esp, 8
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x31c]
call fcn.00404950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.00404950
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4edf62
jmp 0x4edf67
jmp 0x4edea3
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4edf8f
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4ee0ff
mov edx, dword [ebp + 8]
push edx
call fcn.004edb00
add esp, 4
test eax, eax
jne 0x4ee0ff
xor eax, eax
mov word [ebp - 0x2c4], ax
push 0x208
push 0
lea ecx, [ebp - 0x2c2]
push ecx
call fcn.004b6500
add esp, 0xc
lea edx, [ebp - 0x2c4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
add ecx, 0x8c
call fcn.00401870
test eax, eax
je 0x4edfe8
mov ecx, dword [ebp + 8]
add ecx, 0x8c
call fcn.00401830
mov dword [ebp - 0x3b0], eax
jmp 0x4ee000
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x338]
call fcn.00401770
mov dword [ebp - 0x3b4], eax
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x3b8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3b8]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x338]
call fcn.004017f0
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c0]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00401830
push eax
lea edx, [ebp - 0x370]
push edx
call fcn.00569590
add esp, 8
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3c8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c8]
push ecx
call fcn.005608c0
add esp, 8
mov byte [ebp - 0xad], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x370]
call fcn.00404950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x354]
call fcn.00404950
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
add ecx, 0xa8
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ee240
push 1
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x374], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00404910
mov dword [ebp - 0x3cc], eax
mov ecx, 0x5eda00
call fcn.004f3430
lea ecx, [ebp - 0x30]
call fcn.0040bfc0
movzx eax, al
test eax, eax
jne 0x4ee16d
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ed300
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4ee184
mov eax, dword [ebp + 8]
add eax, 0xe0
push eax
call fcn.004f1b20
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x4ee1b4
push 1
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x378], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00404910
mov dword [ebp - 0x3d0], eax
mov ecx, 0x5eda00
call fcn.004f3430
jmp 0x4ee1dc
push 0
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x37c], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00404910
mov dword [ebp - 0x3d4], eax
mov ecx, 0x5eda00
call fcn.004f3430
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ebae0
add esp, 4
test eax, eax
je 0x4ee216
push 1
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x380], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00404910
mov dword [ebp - 0x3d8], eax
mov ecx, 0x5eda00
call fcn.004f3430
jmp 0x4ee23e
push 0
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x384], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00404910
mov dword [ebp - 0x3dc], eax
mov ecx, 0x5eda00
call fcn.004f3430
jmp 0x4ee268
push 0
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x388], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00404910
mov dword [ebp - 0x3e0], eax
mov ecx, 0x5eda00
call fcn.004f3430
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38c], esp
push 0x59bb23
call fcn.00405220
mov dword [ebp - 0x3e4], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x5eda00
call fcn.004f35e0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x390], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404950
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret