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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1b20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8b0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov edx, dword [0x4d2d94]
push ecx
push edx
push 0x4ab8d0
lea edi, [ebp - 0x10]
call fcn.00417250
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push eax
call esi
cmp eax, 0xffffffff
je 0x47c3b5
mov ecx, dword [ebp - 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
push eax
call esi
cmp eax, 0xffffffff
je 0x47c3a0
cmp dword [ebp + 8], 0
je 0x47c40f
mov edx, dword [0x4c9034]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c9034
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov edx, dword [0x4c9034]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c9034
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov ecx, 0x4ab684
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47c246
mov edx, ecx
movzx edi, dx
call fcn.0041bbd0
test eax, eax
je 0x47c259
push eax
mov eax, edi
lea edi, [ebp - 0x14]
call fcn.0041bd80
jmp 0x47c256
push 0x4ab684
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
call fcn.004174d0
mov ebx, dword [ebp - 0x14]
lea edi, [ebx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
cmp edi, esi
je 0x47c2aa
cmp dword [esi + 0xc], 0
jl 0x47c29d
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x47c29d
mov eax, edi
call fcn.004175b0
mov ebx, eax
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x47c295
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x47c2aa
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [ebp - 0x18]
push ecx
call fcn.004174d0
mov byte [ebp - 4], 1
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x47c2c7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push str.FileLocked
push str.Setup
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
mov ebx, dword [0x4d2918]
push ecx
call fcn.0041b1b0
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b9f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c31d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x20]
call fcn.0041b420
mov edx, dword [ebp + 8]
cmp byte [edx + 0x128], 0
mov ecx, dword [eax]
mov eax, 0x35
je 0x47c33d
mov eax, 0x100035
mov esi, dword [ebp - 0x18]
push eax
push ecx
mov ecx, dword [edx + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
mov eax, dword [ebp - 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x47c3ef
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x47c1b8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c3db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c40f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret