Function at 0xf01925e
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0f01bda0
mov eax, dword [0xf061038]
push ebx
xor ebx, ebx
cmp word [ebp + 0x10], 0x10
push esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x1018], ebx
ja 0xf0195d8
cmp word [ebp + 0xc], 8
jne 0xf0195d8
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0xf0195d8
lea ecx, [eax + 9]
cmp ecx, esi
ja 0xf0195d8
push 9
lea eax, [ebp + eax - 0x1004]
push 0xf002398
push eax
call fcn.0f01ca60
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1008], esi
je 0xf0195d8
push ebx
lea eax, [ebp - 0x1010]
push eax
push 0x17
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xf0195d1
cmp dword [ebp - 0x1010], 0x17
jne 0xf0195d1
push 2
pop ecx
mov edi, 0xf00238c
lea esi, [ebp - 0x1004]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0xf019360
push 2
pop ecx
mov edi, 0xf002380
lea esi, [ebp - 0x1004]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0xf0195c9
mov dword [ebp - 0x1018], 1
mov eax, dword [ebp - 0xff1]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push eax
push dword [ebp - 0x1008]
mov dword [ebp - 0x100c], eax
call esi
cmp eax, 0xffffffff
je 0xf0195c9
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x1010]
push eax
push 2
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf0195c9
cmp dword [ebp - 0x1010], 2
jne 0xf0195c9
movzx eax, word [ebp - 0x1004]
add dword [ebp - 0x100c], 2
cmp eax, ebx
mov dword [ebp - 0x1014], eax
jbe 0xf01944a
push ebx
lea eax, [ebp - 0x1010]
push eax
push 0x1c
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf01944a
cmp dword [ebp - 0x1010], 0x1c
jne 0xf01944a
movzx eax, word [ebp - 0xff4]
cmp eax, dword [ebp + 8]
je 0xf01944a
cmp dword [ebp - 0x1014], 1
jbe 0xf019442
cmp dword [ebp - 0x1018], ebx
mov eax, dword [ebp - 0x1002]
jne 0xf019423
add dword [ebp - 0x100c], eax
jmp 0xf019429
mov dword [ebp - 0x100c], eax
push ebx
push ebx
push dword [ebp - 0x100c]
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf0195c9
dec dword [ebp - 0x1014]
jne 0xf0193d2
cmp dword [ebp - 0x1014], ebx
je 0xf0195c9
cmp dword [ebp - 0x1018], ebx
mov eax, dword [ebp - 0xfec]
jne 0xf01946c
add dword [ebp - 0x100c], eax
jmp 0xf019472
mov dword [ebp - 0x100c], eax
push ebx
push ebx
push dword [ebp - 0x100c]
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf0195c9
push ebx
lea eax, [ebp - 0x1010]
push eax
push 6
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf0195c9
cmp dword [ebp - 0x1010], 6
jne 0xf0195c9
movzx eax, word [ebp - 0x1002]
cmp eax, ebx
mov dword [ebp - 0x1014], eax
je 0xf0195d8
push ebx
lea eax, [ebp - 0x1010]
push eax
push 6
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf01957e
cmp dword [ebp - 0x1010], 6
jne 0xf01957e
movzx ax, byte [ebp - 0x1004]
cmp ax, word [ebp + 0x10]
jne 0xf019513
cmp byte [ebp - 0x1003], 8
je 0xf019546
movzx eax, word [ebp - 0x1000]
movzx ecx, byte [ebp - 0x1004]
imul eax, ecx
push 1
push ebx
push eax
push dword [ebp - 0x1008]
call esi
cmp eax, 0xffffffff
je 0xf0195c9
dec dword [ebp - 0x1014]
jne 0xf0194ce
jmp 0xf0195d8
movzx eax, word [ebp - 0x1000]
movzx esi, word [ebp + 0x10]
imul esi, eax
push ebx
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1010]
push eax
push esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call edi
test eax, eax
je 0xf0195c9
cmp dword [ebp - 0x1010], esi
jne 0xf0195c9
cmp dword [ebp - 0x1014], ebx
je 0xf0195d8
cmp dword [ebp - 0x100c], ebx
mov dword [ebp - 0x1018], 0xa0000
lea edi, [ebp - 0x1004]
jbe 0xf0195c4
movzx esi, word [ebp + 0x10]
mov ebx, dword [ebp - 0x100c]
push esi
push edi
push dword [ebp - 0x1018]
call fcn.0f01ca60
add dword [ebp - 0x1018], 0x20
add esp, 0xc
add edi, esi
dec ebx
jne 0xf0195a8
xor eax, eax
inc eax
jmp 0xf0195da
push dword [ebp - 0x1008]
jmp 0xf0195d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0xc