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

Disassembly:
push 0xffffffffffffffff
push 0x4aa1a1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9114]
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.0040387f
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.00403c4b
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.00403dec
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 0x485bab
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x485b9d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x485b9d
push eax
call fcn.00405d6e
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x485b94
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 0x485bab
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405cab
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 0x485bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0x4c3758
push ecx
call fcn.00489333
mov ecx, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x485bef
or eax, 0xffffffff
jmp 0x485bf3
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 0x485c10
mov byte [esp + 0x16], 1
test al, 0x10
je 0x485c15
mov byte [esp + 0x16], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x485c2c
cmp byte [eax], 0
je 0x485c2c
cmp byte [esp + 0x17], 0
je 0x485c2c
mov byte [eax], 1
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
test esi, esi
je 0x485c4c
cmp byte [esp + 0x16], 0
je 0x485c4c
cmp byte [esi], 0
je 0x485c4c
cmp ebx, dword [eax - 0xc]
jne 0x485c4c
mov byte [esi], 1
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x485c61
cmp byte [ecx], 0
jne 0x485c61
cmp ebx, dword [eax - 0xc]
je 0x485c61
mov byte [ecx], 1
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jle 0x485c99
movzx edx, word [eax + 2]
cmp dx, 0x3a
jne 0x485c99
test ecx, ecx
jl 0x485cbb
movzx eax, word [eax]
push eax
call fcn.004884e6
add esp, 4
test eax, eax
je 0x485c95
cmp byte [esp + 0x17], 0
jne 0x485c95
cmp byte [esp + 0x16], 0
je 0x485cc5
mov eax, dword [esp + 0x18]
push 0x5c
push eax
call fcn.00488386
add esp, 8
test eax, eax
je 0x485cd3
sub eax, dword [esp + 0x18]
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x485b40
jmp 0x485cd3
push 0x80070057
call fcn.0040101f
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
call fcn.00404d62
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x18]
call fcn.00403910
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