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

Disassembly:
sub esp, 0x214
mov eax, dword [0x50b06c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov dword [esp + 0xc], ebp
test byte [esi + 0x2c], 0x40
je 0x47ec9d
pop esi
pop ebp
mov eax, 0xfffff019
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004879f1
add esp, 0x214
ret
mov ecx, ebx
mov dword [esi + 0x78], 0x4c62b0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ecb0
sub ecx, edx
push edi
lea edi, [ecx + 1]
push edi
call dword [0x50bacc]
add esp, 4
test eax, eax
je 0x47ecd6
push edi
push ebx
push eax
call fcn.0049f640
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
je 0x47ef25
mov eax, dword [esi + 0x2c]
test al, 0x40
jne 0x47ecf8
or eax, 0x40
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x47ecf8
mov eax, dword [esi + 4]
inc dword [eax + 4]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
add ebx, ebx
push ebx
call dword [0x50bacc]
mov edi, eax
add esp, 4
test edi, edi
je 0x47ef34
shr ebx, 1
push ebx
push edi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x47ed51
call dword [0x4eb0cc]
mov ecx, eax
call fcn.004822d0
jmp 0x47ef0c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ee60
test al, 0x10
je 0x47ed69
mov ebx, edi
jmp 0x47edc3
lea ebp, [esp + 0x18]
push 2
mov eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
neg eax
lea edx, [esp + 0x10]
mov ecx, edi
sbb ebx, ebx
lea eax, [esi + 0x7c]
push eax
and ebx, ebp
call fcn.0047eb00
add esp, 4
test eax, eax
jne 0x47ee60
lea eax, [esi + 0x80]
xor edx, edx
push eax
mov ecx, ebx
call fcn.0047eb00
add esp, 4
test eax, eax
jne 0x47ee60
mov ebp, dword [esp + 0x10]
mov ecx, edi
mov ebx, ebp
call fcn.004765a0
xor edi, edi
push 0
push 0x42000000
push 3
push 0
push 7
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x70], eax
test ebp, ebp
je 0x47ede7
mov ecx, ebp
call fcn.004765a0
mov ecx, dword [esi + 0x70]
cmp ecx, 0xffffffff
je 0x47ee60
mov eax, dword [esi + 4]
push 0
push esi
push dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
invalid
test eax, eax
je 0x47ee60
cmp dword [esi + 0x88], 0
jne 0x47ee28
push 0x1000
call dword [0x50bacc]
add esp, 4
mov dword [esi + 0x88], eax
test eax, eax
je 0x47ef43
push 0
lea eax, [esi + 0x54]
xorps xmm0, xmm0
push eax
push 0
push 0x17f
push 0
movups xmmword [eax], xmm0
push 0x1000
mov dword [eax + 0x10], 0
push dword [esi + 0x88]
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
jne 0x47eefd
call dword [0x4eb0cc]
mov ebx, eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x47ee7b
call fcn.004765a0
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x47ee8e
call fcn.004765a0
mov dword [esi + 0x7c], 0
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x47eea7
call fcn.004765a0
mov dword [esi + 0x80], 0
mov ecx, edi
call fcn.004765a0
mov eax, dword [esi + 0x70]
cmp eax, 0xffffffff
je 0x47eec4
push eax
call dword [0x4eb070]
mov dword [esi + 0x70], 0xffffffff
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x47eedd
call fcn.004765a0
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x2c]
test al, 0x40
je 0x47eef4
and eax, 0xffffffbf
mov dword [esi + 0x2c], eax
test al, 0x20
je 0x47eef4
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov ecx, ebx
call fcn.004822d0
jmp 0x47ef0c
mov dword [esi + 0x84], edi
xor eax, eax
mov dword [esi + 0x74], 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004879f1
add esp, 0x214
ret
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
int3