Function at 0x10cba41
Capabilities:
Read file on windows

Disassembly:
push 0x78
mov eax, 0x11b668e
call fcn.010b143d
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], edi
call fcn.010368a4
push edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.010a9ee1
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0106d7bf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
jne 0x10cbacd
mov dword [ebp - 0x30], 0x80004005
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10cbd19
test dword [eax + 0x5c], 0x40000
je 0x10cbd19
push 0x100b4c4
push 0xa
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.01034b88
jmp 0x10cbd19
push edi
inc eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.010a9ee1
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0x2f
call fcn.010a2f5d
mov esi, eax
cmp esi, 0xffffffff
jne 0x10cbb43
push 1
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0x5c
call fcn.010a2f5d
mov esi, eax
cmp esi, 0xffffffff
jne 0x10cbb43
mov dword [ebp - 0x30], 0x8000ffff
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10cbd19
test dword [eax + 0x5c], 0x40000
je 0x10cbd19
push 0x100b4c4
push 0xb
jmp 0x10cbabd
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0103cf9d
mov eax, dword [eax]
lea eax, [eax + esi*2]
lea esi, [eax + 2]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.01035f4a
push dword [eax]
lea eax, [ebp - 0x38]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.010368c0
push 0x100b4d4
lea ecx, [ebp - 0x2c]
call fcn.0104acce
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10cbb8b
lea eax, [ebp - 0x28]
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
jne 0x10cbc02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10cbbbb
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10cbd19
test dword [eax + 0x5c], 0x40000
je 0x10cbd19
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10cbbe7
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push ecx
push 0x100b4c4
push 0xc
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.01044214
jmp 0x10cbd19
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10cbc61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10cbc28
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10cbd19
test dword [eax + 0x5c], 0x40000
je 0x10cbd19
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10cbc54
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push ecx
push 0x100b4c4
push 0xd
jmp 0x10cbbf2
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
push edi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.010efc01
push edi
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffffe
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x4c], edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10cbcf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10cbcb6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
mov eax, dword [0x11f200c]
cmp eax, 0x11f200c
je 0x10cbd11
test dword [eax + 0x5c], 0x40000
je 0x10cbd11
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10cbcda
lea ecx, [ebp - 0x28]
push dword [ebp - 0x60]
push dword [ebp - 0x30]
push ecx
push 0x100b4c4
push 0xe
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.010494fb
jmp 0x10cbd11
mov eax, dword [ebp - 0x60]
push edi
dec eax
push eax
lea ecx, [ebp - 0x48]
call fcn.010efc01
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
push dword [ebp - 0x44]
call fcn.010ba82b
lea ecx, [ebp - 0x48]
call fcn.0112c1e2
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.010362ea
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
call fcn.010b14cf
ret 4