Function at 0x1010e2f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [0x1026cba0], ebx
call edi
mov dword [0x1026cba8], eax
mov eax, dword [0x1026cbac]
cmp eax, ebx
jne 0x1010e33a
mov dword [0x1026cba0], 2
mov dword [0x1026cba4], 0x1c6e
call edi
pop edi
pop esi
mov dword [0x1026cba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x10]
push 1
push eax
push ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x380]
cmp eax, ebx
jne 0x1010e392
mov edi, dword [esp + 0x6c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x1010e385
mov dword [eax], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
cmp ecx, eax
jae 0x1010e3d2
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x1010e3a0
mov dword [ecx], eax
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x1010e3c3
mov dword [0x1026cba0], 0x20
mov dword [0x1026cba4], 0x1c87
call edi
mov dword [0x1026cba8], eax
xor eax, eax
cmp esi, ebx
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x4c
ret
push eax
call fcn.10063988
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1010e406
mov dword [0x1026cba0], 0x21
mov dword [0x1026cba4], 0x1c91
call edi
pop edi
pop esi
mov dword [0x1026cba8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, dword [ebp + 0x380]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x378]
xor edi, edi
lea eax, [ebp + 0x37c]
push edi
push eax
push ecx
push esi
mov dword [esp + 0x70], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x380]
lea edx, [esp + 0x14]
push edi
push edx
push eax
push ebx
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x1010e586
mov eax, dword [ebp + 0x384]
mov ecx, dword [ebp + 0x380]
push eax
push ecx
push ebx
call fcn.10147c40
add esp, 0xc
test eax, eax
je 0x1010e59c
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x1c]
push 0x40
push edx
mov ecx, dword [eax + 0x20]
push ecx
call fcn.10108de0
add esp, 0xc
test eax, eax
jne 0x1010e4f6
mov ecx, dword [ebp + 0x380]
mov edi, dword [esp + 0x6c]
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x74]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x1010e4e9
mov ecx, dword [ebp + 0x380]
mov dword [eax], ecx
mov dword [esp + 0x60], 1
jmp 0x1010e5bb
push eax
call fcn.1014a800
mov edx, eax
add esp, 4
test edx, edx
je 0x1010e570
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [ebp + 0x380]
push eax
push ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x30]
push ecx
push eax
mov ecx, edx
mov dword [esp + 0x80], 0
call dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x60], eax
je 0x1010e55a
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1010e5bb
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
jmp 0x1010e5bb
mov dword [0x1026cba0], 0x12
mov dword [0x1026cba4], 0x1ccf
jmp 0x1010e5b0
mov dword [0x1026cba0], 0xc
mov dword [0x1026cba4], 0x1cd4
jmp 0x1010e5b0
mov dword [0x1026cba0], 0xd
mov dword [0x1026cba4], 0x1ca3
jmp 0x1010e5b0
mov dword [0x1026cba0], 0x1c
mov dword [0x1026cba4], 0x1caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1026cba8], eax
push ebx
call fcn.100639b7
mov eax, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret