Function at 0x1030dac
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push 0x70
mov eax, 0x1057c85
call fcn.01034b96
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0102e4c3
xor edi, edi
mov dword [ebp - 4], edi
push 0x100438c
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01016762
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0102e513
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1030e08
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102e513
push 0x7e
pop eax
jmp 0x1031075
mov dword [ebp - 0x1c], edi
or dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 4], 3
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
je 0x1030df4
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
cmp eax, edi
jne 0x1030e55
mov dword [ebp - 0x14], 0x7e
mov byte [ebp - 4], 2
jmp 0x1031049
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x1030e45
add eax, 2
push eax
call fcn.0103560f
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x1030e78
mov dword [ebp - 0x14], 0x8007000e
jmp 0x1030e4c
mov eax, dword [ebp - 0x58]
add eax, 2
push eax
push edi
push esi
call fcn.01035620
add esp, 0xc
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x58]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1030ea8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x1030e4c
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push esi
call fcn.01033d39
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1030e4c
push esi
lea ecx, [ebp + 0x14]
call fcn.0102df21
mov byte [ebp - 4], 4
cmp dword [eax], edi
je 0x1030ed2
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1030ed4
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
call fcn.01017b7f
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x1030ef0
call fcn.010125bf
mov dword [ebp + 0x14], edi
lea ecx, [ebp - 0x48]
call fcn.0102e780
mov byte [ebp - 4], 7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x48]
call fcn.010503cd
mov byte [ebp - 4], 8
push eax
mov ecx, dword [ebp + 0x18]
call fcn.0102e536
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1030f2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x100437c
call fcn.0101193a
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.0104cd2d
mov ecx, eax
call fcn.0104f19d
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0x14]
push ecx
mov ecx, eax
call fcn.0104cd2d
mov ecx, eax
call fcn.0104ef7e
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.0104cd2d
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.0104f596
mov byte [ebp - 4], 0xf
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1030f92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x1030fa3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 8], edi
je 0x1030fe7
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.0104cd2d
mov ecx, eax
call fcn.0104f380
mov byte [ebp - 4], 0x11
cmp dword [eax], edi
je 0x1030fc9
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1030fcb
xor eax, eax
push eax
mov ecx, dword [ebp + 0x10]
call fcn.010179e9
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
je 0x1030fe7
call fcn.010125bf
mov dword [ebp + 0x18], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1030ff8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.01013fed
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0102e513
mov dword [ebp - 4], 2
jmp 0x1031049
cmp dword [ebp - 0x18], 0xffffffff
je 0x1031058
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], edi
je 0x1031066
push dword [ebp - 0x1c]
call fcn.01034c6d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102e513
mov eax, dword [ebp - 0x14]
call fcn.01034c3b
ret 0x14