Function at 0x1010e1b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x774
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1026dba0], ebx
call esi
mov dword [0x1026dba8], eax
mov eax, dword [0x1026dbac]
cmp eax, ebx
jne 0x1010e200
mov dword [0x1026dba0], 2
mov dword [0x1026dba4], 0x1c34
call esi
pop edi
pop esi
mov dword [0x1026dba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x774
ret
mov ebp, dword [esp + 0x788]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x20], ebx
call edi
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x24], eax
call edi
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x3a5]
mov byte [esp + 0x3a4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebp, 0xffffffff
stosb byte es:[edi], al
je 0x1010e2ab
lea ecx, [esp + 0x3a4]
test ecx, ecx
je 0x1010e2ab
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010e2c6
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x3a4]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x3ac]
push 0x3e0
push eax
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010e2a4
mov dword [0x1026dba0], 0xd
mov dword [0x1026dba4], 0x29f7
jmp 0x1010e2bf
mov esi, 1
jmp 0x1010e2c8
mov dword [0x1026dba0], 1
mov dword [0x1026dba4], 0x29ea
call esi
mov dword [0x1026dba8], eax
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jne 0x1010e30a
mov dword [0x1026dba0], 0xf
mov dword [0x1026dba4], 0x1c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026dba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x774
ret
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3a4]
push eax
push ecx
call fcn.10114050
add esp, 8
test eax, eax
jne 0x1010e363
mov dword [0x1026dba0], 0x14
mov dword [0x1026dba4], 0x1c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1026dba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x774
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026dba0], ebx
call esi
lea edx, [esp + 0x1c]
mov dword [0x1026dba8], eax
test edx, edx
jne 0x1010e39e
mov dword [0x1026dba0], 1
mov dword [0x1026dba4], 0x3745
call esi
mov dword [0x1026dba8], eax
jmp 0x1010e453
cmp dword [0x1026dbac], ebx
jne 0x1010e3c6
mov dword [0x1026dba0], 2
mov dword [0x1026dba4], 0x374b
call esi
mov dword [0x1026dba8], eax
jmp 0x1010e453
cmp dword [0x1026e15c], ebx
jne 0x1010e3f9
mov eax, dword [esp + 0x208]
mov edx, dword [esp + 0x210]
mov ecx, dword [0x1026dbbc]
cmp eax, 0x2710
ja 0x1010e435
cmp ecx, 0x2710
ja 0x1010e3f9
cmp ecx, eax
je 0x1010e3f9
cmp eax, ebx
jne 0x1010e445
mov edi, dword [esp + 0x78c]
cmp edi, ebx
je 0x1010e40f
mov ecx, 0xe2
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x790]
mov edi, dword [esp + 0x798]
cmp esi, ebx
jne 0x1010e47b
cmp edi, ebx
jne 0x1010e47b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x774
ret
cmp eax, ecx
jne 0x1010e445
cmp dword [0x1026dbc4], ebx
ja 0x1010e3f9
cmp edx, ebx
je 0x1010e3f9
push edx
push eax
call fcn.1011a720
add esp, 8
cmp eax, ebx
jne 0x1010e3f9
mov dword [0x1026dba0], 0x1f
mov dword [0x1026dba4], 0x1c57
call esi
pop edi
pop esi
mov dword [0x1026dba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x774
ret
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push ebx
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x794]
push edi
push edx
lea eax, [esp + 0x3ac]
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call fcn.1010e4c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x774
ret