Function at 0x47b350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2f7b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4e51f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xc1], dl
mov esi, ecx
cmp dword [esi + 0x10], 3
jg 0x47b3ce
push str.filesys_remove_directory
lea ecx, [ebp - 0x40]
call fcn.00433100
mov dword [ebp - 4], 0
mov edx, 0x16
lea eax, [ebp - 0x40]
push eax
lea ecx, [edx - 0x15]
call fcn.00482680
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x47b636
push dword [ebp - 0x40]
call fcn.0048ccb8
add esp, 4
jmp 0x47b636
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x47b3d8
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
je 0x47b3f5
push str.filesys_remove_directory
lea ecx, [ebp - 0x40]
call fcn.00433100
mov dword [ebp - 4], 1
jmp 0x47b3a0
cmp eax, 8
jb 0x47b3fe
mov ecx, dword [esi]
jmp 0x47b400
mov ecx, esi
cmp word [ecx + 4], 0x5c
je 0x47b41d
push str.filesys_remove_directory
lea ecx, [ebp - 0x40]
call fcn.00433100
mov dword [ebp - 4], 2
jmp 0x47b3a0
cmp eax, 8
jb 0x47b426
mov eax, dword [esi]
jmp 0x47b428
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x47b606
test al, 0x10
je 0x47b606
lea ecx, [ebp - 0xc0]
call fcn.0047c070
push 0x4c98d4
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 4
call fcn.00433100
push 0x4c98d4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00433100
push 1
sub esp, 8
mov byte [ebp - 4], 6
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.0047c0c0
lea ecx, [ebp - 0x40]
call fcn.00432b00
lea ecx, [ebp - 0x58]
call fcn.00432b00
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 7
mov eax, 0x66666667
mov ecx, dword [ebp - 0xbc]
xor edi, edi
sub ecx, dword [ebp - 0xc0]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x47b598
xor ebx, ebx
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0047c630
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x47b505
push 0xffffffffffffffff
push 0
push eax
call fcn.00432c00
mov byte [ebp - 4], 7
cmp dword [ebp - 0x44], 8
jb 0x47b51a
push dword [ebp - 0x58]
call fcn.0048ccb8
add esp, 4
mov eax, dword [ebp - 0xc0]
cmp byte [eax + ebx + 0x18], 0
je 0x47b53d
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
mov dl, al
call fcn.0047b350
add esp, 8
jmp 0x47b569
cmp byte [ebp + 0xc], 0
je 0x47b54b
lea ecx, [ebp - 0x28]
call fcn.0047afd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
ja 0x47b569
lea ecx, [ebp - 0x28]
call fcn.0047b210
mov ecx, dword [ebp - 0xbc]
mov eax, 0x66666667
sub ecx, dword [ebp - 0xc0]
inc edi
imul ecx
add ebx, 0x28
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x47b4e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [ebp - 0xc1], 0
jne 0x47b5a5
mov bl, 1
jmp 0x47b5d2
cmp byte [ebp + 0xc], 0
je 0x47b5b2
mov ecx, esi
call fcn.0047afd0
cmp dword [esi + 0x14], 8
jb 0x47b5bc
mov eax, dword [esi]
jmp 0x47b5be
mov eax, esi
push eax
call ebx
test al, 1
jbe 0x47b5c9
xor bl, bl
jmp 0x47b5d2
mov ecx, esi
call fcn.0047b2b0
mov bl, al
cmp dword [ebp - 0x14], 8
jb 0x47b5e3
push dword [ebp - 0x28]
call fcn.0048ccb8
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0045ed40
mov al, bl
jmp 0x47b638
push str.filesys_remove_directory
lea ecx, [ebp - 0x58]
call fcn.00433100
mov edx, 0x16
mov dword [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea ecx, [edx - 0x15]
call fcn.00482680
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00432b00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cca9
mov esp, ebp
pop ebp
ret