Function at 0x10060b50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ee569
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b4], edi
cmp dword [esi + 0x10], 0
je 0x100610b4
mov ecx, esi
call fcn.100e0060
test al, al
je 0x100610b4
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x258]
push eax
mov edx, edi
mov ecx, esi
call fcn.100618d0
add esp, 4
test al, al
je 0x10060d34
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10060c19
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x10060d51
xorps xmm0, xmm0
lea ecx, [ebp - 0x234]
movups xmmword [ebp - 0x234], xmm0
call fcn.10061c60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10060c5d
cmp dword [ebp - 0x228], 0
jne 0x10060c5d
lea ecx, [ebp - 0x228]
push ecx
call eax
mov ecx, edi
call fcn.100e0cd0
test al, al
je 0x10060cd4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10060c7e
push dword [ebp - 0x228]
call eax
mov eax, dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x10060ca4
push eax
call esi
mov ecx, dword [ebp - 0x234]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10060cc8
push eax
call esi
mov ecx, dword [ebp - 0x234]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x234], ecx
mov byte [ebp - 0x2a9], 1
jmp 0x1006109a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10060cea
push dword [ebp - 0x228]
call eax
mov eax, dword [ebp - 0x234]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x10060d10
push eax
call edi
mov ecx, dword [ebp - 0x234]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10060d34
push eax
call edi
mov ecx, dword [ebp - 0x234]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x234], ecx
cmp dword [esi + 0x14], 8
jb 0x10060d3c
mov esi, dword [esi]
push 0x10234070
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10060d5d
mov byte [ebp - 0x2a9], 0
jmp 0x1006109a
push 0
push 0
push edi
mov byte [ebp - 0x2a9], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10061090
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x2a8]
push edi
push 0x4c
push 1
push eax
call esi
add esp, 0x10
cmp eax, 0x4c
jne 0x10061090
cmp dword [ebp - 0x2a8], eax
jne 0x10061090
test byte [ebp - 0x294], 1
je 0x10060f53
push edi
push 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push 2
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10061089
mov eax, dword [ebp - 0x224]
test ax, ax
je 0x10060f53
push ecx
movzx eax, ax
lea ecx, [ebp - 0x230]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push eax
movq qword [ebp - 0x230], xmm0
call fcn.10061ad0
mov byte [ebp - 4], 4
movzx eax, word [ebp - 0x224]
mov esi, dword [ebp - 0x230]
push edi
push 1
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call eax
add esp, 0x10
cmp eax, 1
je 0x10060e98
mov byte [ebp - 0x2a9], 0
mov byte [ebp - 4], 0
test esi, esi
je 0x10061090
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10060e6b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10060e6b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
jmp 0x10061090
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10060ef7
lea edx, [ebp - 0x220]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10060ed0
sub edx, ecx
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x2b4]
sar edx, 1
push edx
push eax
call fcn.10005390
jmp 0x10060e37
mov byte [ebp - 4], 0
test esi, esi
je 0x10060f4d
mov ecx, dword [ebp - 0x228]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10060f25
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060e65
push ecx
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
push 1
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10061089
push eax
push 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10061089
push edi
push 1
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10061089
mov eax, dword [ebp - 0x224]
cmp eax, 0x14
jb 0x10061089
push 1
add eax, 0xffffffec
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10061089
mov esi, dword [ebp - 0x240]
sub esi, dword [ebp - 0x224]
je 0x10061089
cmp esi, 0x104
ja 0x10061089
lea eax, [esi + 1]
push eax
call fcn.101c8844
add esp, 4
mov dword [ebp - 0x2b8], eax
mov byte [eax + esi], 0
push edi
push 1
push esi
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
call eax
add esp, 0x10
cmp eax, 1
jne 0x10061074
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
mov esi, dword [ebp - 0x2b8]
mov edx, esi
push 0
push 0xffffffffffffffff
call fcn.100e27b0
mov ecx, dword [ebp - 0x2b4]
add esp, 8
mov dword [ebp - 0x2b0], 1
push eax
call fcn.10008620
mov eax, 1
mov dword [ebp - 0x2b0], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.10005300
jmp 0x1006107a
mov esi, dword [ebp - 0x2b8]
test esi, esi
je 0x10061090
push esi
call fcn.101c880e
add esp, 4
jmp 0x10061090
mov byte [ebp - 0x2a9], 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.10005300
mov al, byte [ebp - 0x2a9]
jmp 0x100610b6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8