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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x43581c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407940
mov esi, dword [ebp - 0x22c]
add esp, 4
test eax, eax
je 0x40bdad
mov edi, dword [ebp - 0x228]
cmp esi, edi
je 0x40bdab
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bbb4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bbb4
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00413f20
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bdab
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40bdab
push 1
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40bdab
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.0040e0d0
sub esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
mov byte [ebp - 4], 2
call fcn.0040ef90
test eax, eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
jne 0x40bbf9
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bc08
or eax, 4
jmp 0x40bc08
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.0040b0d0
cmp dword [ebp - 0x280], 0
je 0x40bcad
push 0
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040d920
lea ecx, [ebp - 0x2d4]
call fcn.0040da70
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0040db40
mov ecx, eax
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov edx, dword [ecx + 0xc]
adc edx, dword [ecx + 4]
xor ecx, ecx
cmp edi, eax
jne 0x40bc6e
cmp ecx, edx
jne 0x40bc6e
mov dword [ebp - 0x220], 1
jmp 0x40bc76
xor eax, eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
call fcn.0040f050
test eax, eax
jne 0x40bcad
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bca5
or eax, 4
push 0
push eax
call fcn.0040b0d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x431e9c
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x2d8], eax
cmp dword [ebp - 0x280], 0
mov dword [ebp - 0x2d0], 0x431e60
je 0x40bd1b
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x28c]
cmp dword [edx], eax
jne 0x40bd1b
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x294]
mov dword [edx], eax
mov eax, dword [ebp - 0x2b4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2a4]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x284], 0
je 0x40bd2f
lea ecx, [ebp - 0x2d0]
call fcn.0040f050
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0x431eb0
test edi, edi
je 0x40bd63
mov ecx, dword [edi]
test ecx, ecx
je 0x40bd5a
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x40bd5a
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.00411919
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x431ef8
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2d8], eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0x274], 0x431f34
call fcn.0041158a
mov edi, dword [ebp - 0x220]
add esp, 4
jmp 0x40bdad
xor edi, edi
test esi, esi
je 0x40bdd2
push esi
call fcn.00411919
add esp, 4
jmp 0x40bdd2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041191e
mov esp, ebp
pop ebp
ret