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

Disassembly:
push 0xffffffffffffffff
push 0x4ad4d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x34]
call fcn.0040389d
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
mov esi, 1
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
call fcn.00403c69
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx - 0xc]
lea ebx, [ebx]
push ebx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
call fcn.00403e0a
mov byte [esp + 0x2c], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x486b5b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x486b4d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x486b4d
push eax
call fcn.0040664e
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x486b44
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x486b5b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040658b
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0x4c6618
push ecx
call fcn.0048a196
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x486b9f
or eax, 0xffffffff
jmp 0x486ba3
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
push ecx
setne byte [esp + 0x1b]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486bc0
mov byte [esp + 0x16], 1
test al, 0x10
je 0x486bc5
mov byte [esp + 0x16], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x486bdc
cmp byte [eax], 0
je 0x486bdc
cmp byte [esp + 0x17], 0
je 0x486bdc
mov byte [eax], 1
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
test esi, esi
je 0x486bfc
cmp byte [esp + 0x16], 0
je 0x486bfc
cmp byte [esi], 0
je 0x486bfc
cmp ebx, dword [eax - 0xc]
jne 0x486bfc
mov byte [esi], 1
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x486c11
cmp byte [ecx], 0
jne 0x486c11
cmp ebx, dword [eax - 0xc]
je 0x486c11
mov byte [ecx], 1
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jle 0x486c49
movzx edx, word [eax + 2]
cmp dx, 0x3a
jne 0x486c49
test ecx, ecx
jl 0x486c6b
movzx eax, word [eax]
push eax
call fcn.00489349
add esp, 4
test eax, eax
je 0x486c45
cmp byte [esp + 0x17], 0
jne 0x486c45
cmp byte [esp + 0x16], 0
je 0x486c75
mov eax, dword [esp + 0x18]
push 0x5c
push eax
call fcn.004891e9
add esp, 8
test eax, eax
je 0x486c83
sub eax, dword [esp + 0x18]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x486af0
jmp 0x486c83
push 0x80070057
call fcn.0040103e
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
call fcn.0040521a
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x18]
call fcn.0040392e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret