Function at 0x4317f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x54aa80
push 0x4cab40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0x88
mov eax, dword [0x551764]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x9c], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
xor al, al
mov byte [ebp - 0x7a], al
mov byte [ebp - 0x7b], al
mov byte [ebp - 0x79], al
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push 0x180
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431910
push 4
push 0x28
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x431909
movaps xmm0, xmmword [0x5497e0]
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], 0x80
push 4
push 0x28
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.Ntdll.dll_NtSetInformationFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
push dword [edi]
lea ecx, [ebp - 0x98]
call fcn.00420fd0
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
jne 0x431a5e
push dword [edi + 0x18]
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
mov edi, dword [ebp - 0x90]
lea ecx, [edi + ecx*2]
mov edx, 0x104
call fcn.00407030
mov eax, dword [ebp - 0x84]
push dword [eax]
push edi
call fcn.004ce01a
add esp, 8
test eax, eax
je 0x43197f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43197b
test eax, 0x410
je 0x43197b
mov al, 1
mov byte [ebp - 0x7a], al
mov byte [ebp - 0x79], al
mov byte [ebp - 0x7b], 1
mov eax, dword [ebp - 0x8c]
test dword [eax + 0x208], 0x200
jne 0x4319b3
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
call fcn.004310d0
mov esi, eax
mov dword [ebp - 0x80], esi
mov al, byte [ebp - 0x7a]
mov byte [ebp - 0x79], al
test esi, esi
jne 0x431a64
jmp 0x4319b6
mov al, byte [ebp - 0x7a]
mov ecx, dword [ebp - 0x8c]
test byte [ecx + 0x208], 0x80
je 0x4319de
mov eax, dword [ebp - 0x88]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0x7a]
mov byte [ebp - 0x79], al
jmp 0x431a64
test al, al
jne 0x431a3d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push edi
mov eax, dword [ebp - 0x88]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x431a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x79], 0
jmp 0x431a64
cmp byte [ebp - 0x7b], 0
je 0x431a25
mov eax, dword [ebp - 0x84]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
je 0x431a37
lea edx, [ebp - 0x50]
mov ecx, edi
call fcn.0042aa80
mov byte [ebp - 0x79], 0
jmp 0x431a64
cmp byte [ebp - 0x7b], 0
je 0x431a54
mov eax, dword [ebp - 0x84]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, byte [ebp - 0x7a]
xor esi, esi
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x79], al
jmp 0x431a64
mov edi, dword [ebp - 0x90]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x88]
call fcn.00431aa8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret