Function at 0x100c03e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x1014ab0]
push ebx
push esi
mov esi, dword [ebp + 0xd0]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp + 0xc4], eax
je 0x100c123
cmp dword [ebp + 0xd4], edi
je 0x100c123
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c07b
sub eax, edx
cmp eax, 5
jb 0x100c123
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c092
sub eax, edx
lea eax, [eax + esi - 4]
push eax
push 0x10039f8
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x100c123
push 0x8000
push esi
call dword [sym.imp.msvcrt.dll__open]
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp + 0xd0], eax
je 0x100c123
mov esi, dword [sym.imp.msvcrt.dll__read]
push 0xc
lea ecx, [ebp - 0x80]
push ecx
push eax
call esi
add esp, 0xc
cmp eax, 0xc
jne 0x100c116
xor ebx, ebx
mov bh, byte [ebp - 0x7c]
mov bl, byte [ebp - 0x7b]
cmp ebx, edi
jbe 0x100c116
cmp edi, 0x28
jae 0x100c116
push 0x10
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xd0]
call esi
add esp, 0xc
cmp eax, 0x10
jne 0x100c116
cmp dword [ebp - 0x64], 0x656d616e
je 0x100c13b
inc edi
cmp edi, ebx
jb 0x100c0ed
push dword [ebp + 0xd0]
call dword [sym.imp.msvcrt.dll__close]
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0xc4]
pop edi
pop esi
pop ebx
call fcn.0100c7cd
add ebp, 0xc8
leave
ret
mov eax, dword [ebp - 0x5c]
mov edi, dword [sym.imp.msvcrt.dll__lseek]
mov esi, eax
mov ecx, eax
shr ecx, 0x10
and esi, 0xff0000
or esi, ecx
mov ecx, eax
shl ecx, 0x10
mov ebx, 0xff00
and eax, ebx
or ecx, eax
shl ecx, 8
shr esi, 8
or esi, ecx
push 0
push esi
push dword [ebp + 0xd0]
call edi
add esp, 0xc
cmp eax, esi
jne 0x100c116
mov esi, dword [sym.imp.msvcrt.dll__read]
push 6
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xd0]
call esi
add esp, 0xc
cmp eax, 6
jne 0x100c116
xor eax, eax
mov ah, byte [ebp - 0x52]
mov al, byte [ebp - 0x51]
mov dword [ebp - 0x40], eax
jmp 0x100c1e1
dec dword [ebp - 0x40]
push 0xc
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xd0]
call esi
add esp, 0xc
cmp eax, 0xc
jne 0x100c116
movzx ax, byte [ebp - 0x4b]
mov ah, byte [ebp - 0x4c]
cmp ax, 1
jne 0x100c1e1
movzx ax, byte [ebp - 0x45]
mov ah, byte [ebp - 0x46]
cmp ax, 5
je 0x100c1ec
cmp dword [ebp - 0x40], 0
jne 0x100c1a8
jmp 0x100c116
mov eax, dword [ebp - 0x5c]
mov esi, eax
mov ecx, eax
shr ecx, 0x10
and esi, 0xff0000
or esi, ecx
mov ecx, eax
and eax, ebx
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov ah, byte [ebp - 0x50]
shr esi, 8
shl ecx, 8
or esi, ecx
xor ebx, ebx
mov bh, byte [ebp - 0x44]
push 0
mov al, byte [ebp - 0x4f]
mov bl, byte [ebp - 0x43]
add esi, eax
xor eax, eax
mov ah, byte [ebp - 0x42]
mov al, byte [ebp - 0x41]
add esi, eax
push esi
push dword [ebp + 0xd0]
call edi
add esp, 0xc
cmp eax, esi
jne 0x100c116
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xd0]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, ebx
jne 0x100c116
push dword [ebp + 0xd0]
xor eax, eax
mov ah, byte [ebp - 0x44]
mov al, byte [ebp - 0x43]
mov byte [ebp + eax - 0x3c], 0
call dword [sym.imp.msvcrt.dll__close]
pop ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.0100bfed
mov ecx, dword [ebp + 0xd4]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x100c125