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

Disassembly:
push 0xffffffffffffffff
push 0x5900e1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
xor esi, esi
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea edi, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00538fb0
test eax, eax
je 0x538f4d
mov eax, edi
push eax
lea ecx, [esp + 0x20]
call fcn.00538b20
add esp, 4
test eax, eax
je 0x538f49
lea eax, [esp + 0x28]
mov ecx, edi
call fcn.00482d20
mov byte [esp + 0x34], 2
mov ebx, 1
push eax
mov ecx, 0x5aeb10
mov dword [esp + 0x24], ebx
call fcn.00482be0
add esp, 4
test al, al
jne 0x538e4d
lea eax, [esp + 0x24]
mov ecx, edi
call fcn.00482d20
push eax
mov ecx, 0x5aeb14
lea ebx, [esi + 3]
call fcn.00482be0
add esp, 4
test al, al
mov byte [esp + 0x17], 0
je 0x538e52
mov byte [esp + 0x17], 1
test bl, 2
je 0x538e7e
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x34], 1
je 0x538eab
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x538ec0
mov edx, 0x5aeb10
lea edi, [esp + 0x18]
call fcn.004816e0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
call fcn.00473c80
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x538f4d
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.004b3340
add esp, 8
test eax, eax
je 0x538f4d
lea ecx, [esp + 0x24]
push ecx
mov ecx, str.15.0.0.167
call fcn.004818e0
lea edx, [esp + 0x24]
push edx
push edi
mov byte [esp + 0x3c], 3
call fcn.00539070
add esp, 8
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004818c0
cmp esi, 1
jne 0x538f32
mov esi, 3
jmp 0x538f4d
test esi, esi
jne 0x538f3d
mov esi, 2
jmp 0x538f4d
xor eax, eax
cmp esi, 0xffffffff
sete al
mov esi, eax
jmp 0x538f4d
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x538f96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret