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

Disassembly:
push 0xffffffffffffffff
push 0x49b798
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4be0a0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
push 1
mov edi, ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x38]
push str.exe.exe
xor ebx, ebx
push eax
mov esi, edx
mov dword [esp + 0x20], ebx
call fcn.0045ee6a
add esp, 0xc
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x48], ebx
je 0x401dac
push 1
lea eax, [edi + 0x35c]
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.004235d1
mov ecx, dword [esp + 0x38]
mov ebx, 8
cmp dword [esp + 0x4c], ebx
jae 0x401c2b
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [esp + 0x14]
push 1
push esi
push ecx
call fcn.004235d1
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x401c50
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0xb0]
call eax
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x401c6b
lea esi, [esp + 0x38]
call fcn.0045d2b9
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._s__d
lea esi, [esp + 0x24]
call fcn.0045e820
add esp, 0xc
mov ecx, eax
push 0xffffffffffffffff
mov byte [esp + 0x60], 1
mov eax, dword [edi + 0x4a4]
push 0
add eax, 0x24
push ecx
call fcn.00402830
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x30], ebx
jb 0x401cbc
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047d710
add esp, 4
mov eax, dword [edi + 0x4a4]
cmp dword [eax + 0x70], 0
je 0x401d01
cmp dword [eax + 0x74], ebx
jb 0x401cd2
mov esi, dword [eax + 0x60]
jmp 0x401cd5
lea esi, [eax + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401ceb
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401d01
test al, 1
je 0x401cfa
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [edi + 0x4a4]
lea eax, [esp + 0x34]
add edx, 0x24
push eax
lea ecx, [esp + 0x1c]
call fcn.00407360
add esp, 4
mov ecx, eax
push 0xffffffffffffffff
mov byte [esp + 0x60], 2
mov eax, dword [edi + 0x4a4]
push 0
add eax, 0x5c
push ecx
call fcn.00402830
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x30], ebx
jb 0x401d4d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047d710
add esp, 4
mov edi, dword [edi + 0x4a4]
add edi, 0x5c
cmp dword [edi + 0x18], ebx
jb 0x401d60
mov edi, dword [edi + 4]
jmp 0x401d63
add edi, 4
mov edx, dword [esp + 0x14]
push edi
push 1
push str.btnToolImage
push edx
call fcn.004235d1
mov edi, eax
call fcn.0042afd4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
lea ecx, [esp + 0x3c]
mov word [ebp + 4], ax
push ecx
mov eax, ebp
call fcn.00402830
cmp dword [esp + 0x4c], ebx
jb 0x401ddd
mov edx, dword [esp + 0x38]
push edx
jmp 0x401dd5
push ebx
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
push 0x4a11bc
mov esi, ebp
mov word [ebp + 4], ax
call fcn.004028e0
cmp dword [esp + 0x4c], 8
jb 0x401ddd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0047d710
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0047d444
add esp, 0x4c
ret 4