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

Disassembly:
push 0xffffffffffffffff
push 0x43bbb7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
xor edi, edi
cmp esi, edi
je 0x415332
push 0x208
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.00420090
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.0041f3cd
add esp, 0xc
test eax, eax
je 0x415332
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415332
lea ecx, [esp + 0x24]
call fcn.00415e90
test al, al
je 0x415332
add dword [0x44cf28], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00401b70
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.File:
mov dword [esp + 0x244], edi
call fcn.00401b70
mov byte [esp + 0x240], 1
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
push 0x443ad8
mov ecx, 0x44cfe0
call fcn.00412bc0
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415198
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4151c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
cmp ebp, edi
jne 0x41532e
cmp dword [esp + 0x24c], edi
je 0x41532e
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00401b70
lea eax, [esp + 0x20]
push eax
mov eax, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 2
call fcn.0040bc60
push eax
mov ecx, str..tmp
call fcn.0040bcd0
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00401c20
test bl, bl
je 0x415315
lea esi, [esp + 0x18]
call fcn.00401b50
mov byte [esp + 0x240], 3
mov ecx, dword [esp + 0x20]
push 0x5c
push ecx
call fcn.0041caa3
add esp, 8
cmp eax, edi
jne 0x41525b
or eax, 0xffffffff
jmp 0x415261
sub eax, dword [esp + 0x20]
sar eax, 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
call fcn.00401c40
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.00401d10
mov edx, dword [esp + 0x1c]
push eax
push edi
push 0x43fc90
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
or eax, 0xffffffff
call fcn.004075c0
test edi, edi
jne 0x4152bb
lea eax, [esp + 0x24]
push eax
push str._s.tmp
mov edi, esi
call fcn.00402160
mov esi, dword [esp + 0x20]
jmp 0x4152c7
mov esi, dword [esp + 0x18]
push 1
push esi
call fcn.00415080
add esp, 8
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.0041f741
add esp, 8
test eax, eax
push 4
push 0
jne 0x4152e9
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4152f6
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.00401c20
lea ecx, [esp + 0x18]
call fcn.00401c20
lea ecx, [esp + 0x20]
call fcn.00401c20
mov eax, ebp
jmp 0x415334
push 4
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00401c20
mov eax, ebp
jmp 0x415334
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041cb94
add esp, 0x230
ret