Function at 0x100e23b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x1027d4e8], ebp
call ebx
mov dword [0x1027d4f0], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x98]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100e23ff
mov ecx, 8
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
jmp 0x100e248c
mov esi, dword [esp + 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x28], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100e245c
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x38]
push 0x20
push edx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e245c
cmp dword [esp + 0x14], 0x20
jne 0x100e245c
mov ebp, 1
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x100e264f
lea ecx, [esp + 0x30]
push ecx
call fcn.100dbb20
add esp, 4
test eax, eax
je 0x100e267b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x1027d4e8], ebp
call ebx
lea edx, [esp + 0x30]
mov dword [0x1027d4f0], eax
test edx, edx
jne 0x100e24e4
mov dword [0x1027d4e8], 1
mov dword [0x1027d4ec], 0x278
call ebx
mov dword [0x1027d4f0], eax
mov dword [0x1027d4e8], 0x1f
mov dword [0x1027d4ec], 0x1105
call ebx
pop edi
pop esi
mov dword [0x1027d4f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
cmp dword [0x1027d4f4], ebp
jne 0x100e2502
mov dword [0x1027d4e8], 2
mov dword [0x1027d4ec], 0x27e
jmp 0x100e24b5
cmp dword [0x1027da1c], ebp
jne 0x100e2559
mov al, byte [esp + 0x36]
mov edx, dword [esp + 0x40]
mov esi, dword [0x1027d500]
mov cl, al
and ecx, 1
cmp edx, 0x2710
ja 0x100e2537
cmp esi, 0x2710
ja 0x100e2561
cmp esi, edx
je 0x100e2561
cmp edx, ebp
jne 0x100e2547
jmp 0x100e2561
cmp edx, esi
jne 0x100e2547
cmp dword [0x1027d508], ebp
ja 0x100e2561
cmp ecx, ebp
je 0x100e2561
push ecx
push edx
call fcn.100dbd80
add esp, 8
cmp eax, ebp
je 0x100e24bc
mov al, byte [esp + 0x36]
mov edx, dword [esp + 0x40]
cmp edx, 0x2710
jbe 0x100e26a7
and eax, 1
mov esi, eax
je 0x100e26b7
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x14]
push ebp
push eax
lea ecx, [esp + 0x5c]
push 0x40
push ecx
push esi
push edx
mov edx, dword [esp + 0x51]
and edx, 0xff
mov dword [esp + 0x2c], ebp
push edx
call fcn.100db460
xor eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x41], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x45], eax
push ecx
mov dword [esp + 0x4d], eax
push edx
mov word [esp + 0x55], ax
mov byte [esp + 0x48], 0
mov byte [esp + 0x57], al
lea eax, [esp + 0x78]
push eax
call fcn.100e3700
lea edx, [esp + 0x68]
lea ecx, [esp + 0x4c]
add esp, 0x2c
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
je 0x100e26c7
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x1c]
push ecx
push 0x40
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
call fcn.100dc440
add esp, 0x14
test eax, eax
je 0x100e263f
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x80
ret
mov dword [0x1027d4e8], 0xf
mov dword [0x1027d4ec], 0x10f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1027d4f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
mov dword [0x1027d4e8], 0x14
mov dword [0x1027d4ec], 0x10fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x1027d4f0], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x80
ret