Function at 0x4614f0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x51e710]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x414], 0
call fcn.004613d0
push eax
lea ecx, [ebp - 0x414]
call fcn.0045ec20
mov dword [ebp - 4], 0
push dword [ebp - 0x414]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46175e
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x46175e
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
push 0x2a
push str.key_is_32_bits_to_448_bits___variable_size
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.0045e1a0
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4615f2
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x46162b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp dword [ebp - 0x418], 0x10
jb 0x46160b
push dword [ebp - 0x42c]
call fcn.00472297
add esp, 4
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
jmp 0x461760
lea eax, [esi + 1]
push eax
call fcn.0047228e
add esp, 4
mov dword [ebp - 0x438], eax
mov ebx, eax
mov byte [eax + esi], 0
mov esi, 1
push 0
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x461719
jmp 0x461680
mov edx, dword [ebp - 0x434]
test edx, edx
je 0x461714
cmp dword [ebp - 0x418], 0x10
lea esi, [ebp - 0x42c]
cmovae esi, dword [ebp - 0x42c]
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x43c], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4616b0
sub ecx, dword [ebp - 0x43c]
push ecx
push esi
lea ecx, [ebp - 0x410]
call fcn.0045d0f0
mov esi, eax
add esp, 8
test esi, esi
je 0x461714
push dword [ebp - 0x434]
lea eax, [ebp - 0x410]
push eax
push ebx
call fcn.0048fe00
add ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x434]
add esp, 0xc
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x461680
cmp esi, 1
jne 0x46173e
push dword [ebp - 0x440]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x444]
push ebx
call fcn.0045dde0
jmp 0x461744
mov ebx, dword [ebp - 0x438]
push ebx
call fcn.00472297
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne bl
jmp 0x4615f4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp - 0x414]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x461787
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487e85
mov esp, ebp
pop ebp
ret 8