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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e3ed
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
jne 0x4272bb
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405320
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0xa4], ebx
push 0x5b45dc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.00401d90
lea ecx, [ebp - 0xa4]
push ecx
push eax
lea edx, [ebp - 0xac]
push edx
mov byte [ebp - 4], 1
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004050b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4272bb
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
test byte [ebp - 0x9c], 1
je 0x42734b
push str._Read_Only
lea ecx, [ebp - 0xa0]
call fcn.00401d90
push eax
lea eax, [ebp - 0x9c]
push esi
mov ebx, 3
push eax
mov dword [ebp - 4], ebx
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42734b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4273f9
mov eax, dword [ebp - 0x78]
push 0xa
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.0056ee1a
add esp, 0xc
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0041b840
push eax
lea edx, [ebp - 0xa4]
push esi
mov ebx, 5
push edx
mov dword [ebp - 4], ebx
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4273d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4273f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret