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

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x429976
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x43481c]
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
push edx
pop eax
push ecx
pop ebx
sub 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 0x40bc8d
mov edi, dword [ebp - 0x228]
cmp esi, edi
je 0x40bc8b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ba94
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, eax
jne 0x40ba94
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00413d60
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bc8b
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40bc8b
push 1
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or eax, eax
je 0x40bc8b
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.0040df40
sub esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
mov byte [ebp - 4], 2
call fcn.0040ee00
or eax, eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
jne 0x40bad9
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bae8
or eax, 4
jmp 0x40bae8
add ecx, eax
sub eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.0040afb0
cmp dword [ebp - 0x280], 0
je 0x40bb8d
push 0
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040d790
lea ecx, [ebp - 0x2d4]
call fcn.0040d8e0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0040d9b0
push eax
pop ecx
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov edx, dword [ecx + 0xc]
adc edx, dword [ecx + 4]
sub ecx, ecx
cmp edi, eax
jne 0x40bb4e
cmp ecx, edx
jne 0x40bb4e
mov dword [ebp - 0x220], 1
jmp 0x40bb56
xor eax, eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
call fcn.0040eec0
test eax, eax
jne 0x40bb8d
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 0x40bb85
or eax, 4
push 0
push eax
call fcn.0040afb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x430e70
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], 0x430e34
je 0x40bbfb
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x28c]
cmp dword [edx], eax
jne 0x40bbfb
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 0x40bc0f
lea ecx, [ebp - 0x2d0]
call fcn.0040eec0
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0x430e84
test edi, edi
je 0x40bc43
mov ecx, dword [edi]
test ecx, ecx
je 0x40bc3a
mov eax, dword [ecx]
call dword [eax + 8]
push eax
pop ecx
test ecx, ecx
je 0x40bc3a
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.0041177f
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x430ecc
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], 0x430f08
call fcn.004113f0
mov edi, dword [ebp - 0x220]
add esp, 4
jmp 0x40bc8d
xor edi, edi
test esi, esi
je 0x40bcb2
push esi
call fcn.0041177f
add esp, 4
jmp 0x40bcb2
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.00411784
mov esp, ebp
pop ebp
ret