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

Disassembly:
sub esp, 0x210
mov eax, dword [0x53c074]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
mov esi, ecx
mov dword [esp + 8], 0
test byte [esi + 0x2c], 4
je 0x4affd9
pop esi
mov eax, 0xfffff019
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c3717
add esp, 0x210
ret
mov ecx, ebp
mov dword [esi + 0x78], 0x4e55f0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4affe5
sub ecx, edx
push edi
lea edi, [ecx + 1]
push edi
call dword [0x53d638]
add esp, 4
test eax, eax
je 0x4b000b
push edi
push ebp
push eax
call fcn.004c5650
add esp, 0xc
mov dword [esi + 0x30], eax
push ebx
test eax, eax
je 0x4b02bc
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x4b002e
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x4b002e
mov eax, dword [esi + 4]
inc dword [eax + 4]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
add ebx, ebx
push ebx
call dword [0x53d638]
mov edi, eax
add esp, 4
test edi, edi
je 0x4b02bc
shr ebx, 1
push ebx
push edi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4b0098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004b8970
mov ecx, dword [esp + 0x21c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004c3717
add esp, 0x210
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b020d
test al, 0x10
je 0x4b0115
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebp, eax
test ebp, ebp
je 0x4b00fc
lea ecx, [ebp*2]
push ecx
call dword [0x53d638]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b02bc
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4b00ed
xor ecx, ecx
mov word [ebx + eax*2], cx
jmp 0x4b0100
mov ecx, ebx
call fcn.004aa760
mov ebp, dword [esp + 0x10]
mov ebx, edi
jmp 0x4b016f
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4b010d
mov ecx, edi
call fcn.004aa760
mov edi, ebx
mov ebp, dword [esp + 0x10]
mov ebx, edi
jmp 0x4b016f
lea ebp, [esp + 0x14]
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.004afe50
add esp, 4
test eax, eax
jne 0x4b020d
lea eax, [esi + 0x80]
xor edx, edx
push eax
mov ecx, ebx
call fcn.004afe50
add esp, 4
test eax, eax
jne 0x4b020d
mov ebp, dword [esp + 0x10]
mov ecx, edi
mov ebx, ebp
call fcn.004aa760
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 0x4b0193
mov ecx, ebp
call fcn.004aa760
mov ecx, dword [esi + 0x70]
cmp ecx, 0xffffffff
je 0x4b020d
mov eax, dword [esi + 4]
push 0
push esi
push dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x4b020d
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x4b01d5
push 0x1000
call dword [0x53d638]
add esp, 4
mov dword [esi + 0x88], eax
test eax, eax
je 0x4b02bc
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 0x4b02a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4b0228
call fcn.004aa760
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4b023b
call fcn.004aa760
mov dword [esi + 0x7c], 0
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x4b0254
call fcn.004aa760
mov dword [esi + 0x80], 0
mov ecx, edi
call fcn.004aa760
mov eax, dword [esi + 0x70]
cmp eax, 0xffffffff
je 0x4b0271
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x70], 0xffffffff
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x4b028a
call fcn.004aa760
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x2c]
test al, 4
je 0x4b02a1
and eax, 0xfffffffb
mov dword [esi + 0x2c], eax
test al, 8
je 0x4b02a1
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov ecx, ebx
jmp 0x4b007a
mov dword [esi + 0x84], edi
xor eax, eax
mov dword [esi + 0x74], 1
jmp 0x4b007f
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.004b88e0
int3