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

Disassembly:
push 0xffffffffffffffff
push 0x7031403b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28c]
push 0x206
xor edi, edi
mov esi, ecx
lea edx, [esp + 0x72]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x78], cx
call fcn.702e95e0
add esp, 0xc
mov ecx, esi
call fcn.7020f6f0
test eax, eax
je 0x7020fab3
cmp dword [esi + 0x50], 8
jb 0x7020f8ae
mov esi, dword [esi + 0x3c]
jmp 0x7020f8b1
add esi, 0x3c
push str..Local_State
push esi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7020f8db
mov eax, 1
jmp 0x7020fa82
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
je 0x7020fa7e
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [esp + 0x18], edi
ja 0x7020faac
cmp ebp, edi
je 0x7020faac
lea esi, [ebp + 2]
push 0x70358018
push esi
call fcn.702e36d5
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
test edi, edi
je 0x7020fa77
push esi
push 0
push edi
call fcn.702e95e0
add esp, 0xc
xor esi, esi
push esi
lea ecx, [esp + 0x18]
push ecx
push ebp
push edi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7020fa6e
cmp dword [esp + 0x14], ebp
jne 0x7020fa6e
lea edx, [esp + 0x34]
push edx
call fcn.70210240
mov eax, edi
lea ebx, [esp + 0x34]
mov dword [esp + 0x284], esi
call fcn.70210330
cmp dword [esp + 0x64], esi
jne 0x7020fa52
mov edi, str.profile
lea edx, [esp + 0x30]
mov ecx, ebx
call fcn.70210380
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
shl eax, 5
add eax, dword [esp + 0x3c]
cmp ecx, eax
je 0x7020fa52
cmp word [ecx + 0x1e], 3
jne 0x7020fa52
lea edi, [ecx + 0x10]
lea esi, [esp + 0x2c]
mov ecx, edi
call fcn.702103e0
mov eax, dword [edi]
mov ecx, dword [edi + 8]
shl eax, 5
add eax, ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
je 0x7020fa52
mov ax, word [ecx + 0x1e]
shr ax, 0xa
test al, 1
je 0x7020fa52
add ecx, 0x10
mov edx, 0x1000
mov eax, ecx
test word [ecx + 0xe], dx
jne 0x7020fa13
mov eax, dword [ecx + 8]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x7020fa16
mov edx, 0x1000
sub eax, esi
test word [ecx + 0xe], dx
jne 0x7020fa2d
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x20]
push ebp
push edx
push eax
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x7020fa52
cmp eax, ebp
ja 0x7020fa52
mov dword [esp + 0x1c], 1
lea edi, [esp + 0x34]
mov dword [esp + 0x284], 0xffffffff
call fcn.702102f0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push edi
call fcn.702e1ea6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x274
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x7020fa82