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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440148
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4155ee
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4155f8
mov eax, 1
jmp 0x4157fa
push 4
lea ecx, [ebp - 0x14]
call fcn.00409d50
lea ecx, [ebp - 0x14]
call fcn.00411e90
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x400
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.00411f20
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00411eb0
push 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040a5b0
push eax
call fcn.00413d10
add esp, 0xc
test eax, eax
je 0x415681
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d50
push 0x452b90
lea ecx, [ebp - 0x14]
call fcn.00411d10
jmp 0x4156c3
push 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411bb0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x452b94
call fcn.00411b50
add esp, 8
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x38]
call fcn.00411dd0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x4156c3
push 0x452b98
lea ecx, [ebp - 0x14]
call fcn.00411d10
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 0x3c], eax
push 4
lea ecx, [ebp - 0x1c]
call fcn.00409d50
lea ecx, [ebp - 0x1c]
call fcn.00411e90
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x452b9c
lea edx, [ebp - 0x1c]
push edx
call fcn.00412dc0
add esp, 0x10
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x24], 0
jmp 0x415719
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa
jae 0x4157d6
push 4
lea ecx, [ebp - 0x18]
call fcn.00409d50
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00411e70
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00411d10
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.00411cf0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411d30
push 1
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4157a0
push 4
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00411dd0
jmp 0x4157d6
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._08x_x
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00412dc0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00411dd0
jmp 0x415710
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411dd0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret 4