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

Disassembly:
push 0xffffffffffffffff
push 0x417428
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4352dc]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40322e
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp byte [esp + 0x4dc], 0
lea eax, [esi + 0xc]
jne 0x40332e
cmp byte [esi + 0x11c], 0
jne 0x40325a
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x403587
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [esi + 0x11c], 0
mov ebp, eax
lea eax, [esi + 0xc]
jne 0x403283
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403587
shr eax, 4
not al
and al, 1
je 0x403587
cmp byte [esi + 0x11c], 0
je 0x4032b1
add esi, 0xc
jmp 0x4032b4
mov esi, dword [esi + 8]
lea edi, [esp + 0x38]
call fcn.004039b0
lea eax, [esi + 4]
mov edx, edi
call fcn.00403b60
mov ebx, dword [esp + 0x4d8]
mov ecx, ebx
mov dword [esp + 0x4d0], 1
call fcn.004036a0
mov edi, ebp
mov esi, eax
call fcn.004037f0
mov ecx, ebx
call fcn.004036a0
mov edi, eax
push 0x425ab0
lea eax, [esp + 0x3c]
call fcn.00403900
cmp byte [esp + 0x154], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x403327
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x44]
cmp eax, ecx
je 0x403327
push eax
call fcn.00407568
add esp, 4
xor al, al
jmp 0x403589
cmp byte [esi + 0x11c], 0
jne 0x40333a
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403587
shr eax, 4
not al
and al, 1
je 0x403587
mov eax, dword [esi + 4]
lea ebp, [eax + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.00407645
mov edi, eax
add esp, 4
test edi, edi
jne 0x4033e2
cmp byte [esi + 0x11c], al
je 0x403380
add esi, 0xc
jmp 0x403383
mov esi, dword [esi + 8]
lea edi, [esp + 0x38]
call fcn.004039b0
lea eax, [esi + 4]
mov edx, edi
call fcn.00403b60
mov ecx, dword [esp + 0x4d8]
push 0x425ac0
mov dword [esp + 0x4d4], 3
call fcn.004036a0
mov edi, eax
lea eax, [esp + 0x3c]
call fcn.00403900
cmp byte [esp + 0x154], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x403327
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
cmp eax, edx
jmp 0x40331c
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4033f1
mov eax, dword [esi + 8]
add eax, 4
push eax
push ebp
push edi
call fcn.00407d46
xor eax, eax
mov word [ebx + edi - 2], ax
add esp, 0xc
lea edx, [esp + 0x18]
xor ebx, ebx
mov ecx, 0x454
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 3
mov word [esp + 0x2c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov ebp, eax
call fcn.00407568
add esp, 4
cmp ebp, ebx
je 0x403587
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
push ebx
call fcn.00403cf0
push eax
cmp ebp, 0x402
jne 0x403501
lea ecx, [esp + 0x50]
call fcn.00402d00
push 0x425ad8
lea ecx, [esp + 0x284]
mov dword [esp + 0x4d4], 4
call fcn.00403af0
mov esi, eax
mov eax, ebp
mov byte [esp + 0x4d0], 5
call fcn.00403cd0
mov esi, eax
push 0x425af4
push 0x425b40
mov edx, esi
call fcn.00403d10
add esp, 8
mov ecx, esi
call fcn.00403cf0
mov ebx, dword [esp + 0x4d8]
push eax
call fcn.004037c0
mov edi, eax
lea eax, [esp + 0x3c]
call fcn.00403900
lea ecx, [esp + 0x280]
call fcn.004030e0
lea ecx, [esp + 0x38]
call fcn.004030e0
xor al, al
jmp 0x403589
lea ecx, [esp + 0x174]
call fcn.00402d00
push 0x425ad8
lea ecx, [esp + 0x3a8]
mov dword [esp + 0x4d4], 6
call fcn.00403af0
mov esi, eax
mov eax, ebp
mov byte [esp + 0x4d0], 7
call fcn.00403cd0
mov esi, eax
push 0x425af4
push 0x425b40
mov edx, esi
call fcn.00403d10
add esp, 8
lea eax, [esp + 0x15c]
push eax
mov ecx, esi
call fcn.00403cf0
mov ecx, dword [esp + 0x4dc]
call fcn.00402c70
lea ecx, [esp + 0x3a4]
call fcn.004030e0
lea ecx, [esp + 0x15c]
call fcn.004030e0
xor al, al
jmp 0x403589
mov al, 1
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret 8