Function at 0x1000b2ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x1000b30b
push 0xffffffffffffff9a
pop eax
jmp 0x1000b5c6
mov eax, dword [esi + 0x14]
push ebx
add eax, dword [esi + 0xc]
push edi
push eax
push dword [esi]
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
je 0x1000b32a
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x1000b354
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b341
or dword [ebp - 4], 0xffffffff
jmp 0x1000b351
cmp dword [ebp - 8], 0x2014b50
je 0x1000b351
mov dword [ebp - 4], 0xffffff99
or ebx, 0xffffffff
lea eax, [ebp - 0x5c]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b368
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x58]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b37c
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b390
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x50]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b3a4
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x4c]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b3b8
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x4c]
call fcn.1000b5ca
lea eax, [ebp - 0x48]
push eax
push dword [esi]
call fcn.1000b10c
add esp, 0x10
test eax, eax
je 0x1000b3d9
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b3ed
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b401
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b415
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x38]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b429
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b43d
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b451
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call fcn.1000b092
pop ecx
test eax, eax
pop ecx
je 0x1000b465
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b479
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.1000b10c
pop ecx
test eax, eax
pop ecx
je 0x1000b48d
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 4], edi
mov edx, eax
mov dword [ebp + 8], edx
jne 0x1000b544
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x1000b4e6
cmp eax, dword [ebp + 0x18]
jae 0x1000b4b5
and byte [eax + ecx], 0
mov eax, dword [ebp - 0x3c]
mov edi, eax
jmp 0x1000b4b8
mov edi, dword [ebp + 0x18]
test eax, eax
jbe 0x1000b4d8
cmp dword [ebp + 0x18], 0
jbe 0x1000b4d8
push dword [esi]
push 1
push edi
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
je 0x1000b4d8
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
sub edx, edi
cmp dword [ebp - 4], 0
mov dword [ebp + 8], edx
jne 0x1000b544
cmp dword [ebp + 0x1c], 0
je 0x1000b544
mov edi, dword [ebp - 0x38]
cmp edi, dword [ebp + 0x20]
jb 0x1000b4f7
mov edi, dword [ebp + 0x20]
test edx, edx
je 0x1000b514
push 1
push edx
push dword [esi]
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
jne 0x1000b511
and dword [ebp + 8], eax
jmp 0x1000b514
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 0
jbe 0x1000b538
cmp dword [ebp + 0x20], 0
jbe 0x1000b538
push dword [esi]
push 1
push edi
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
je 0x1000b538
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
sub eax, edi
add edx, eax
jmp 0x1000b547
add edx, dword [ebp - 0x38]
cmp dword [ebp - 4], 0
jne 0x1000b5c2
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x1000b5a7
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp + 0x28]
cmp eax, ebx
jae 0x1000b565
and byte [eax + edi], 0
mov ebx, dword [ebp - 0x34]
test edx, edx
je 0x1000b57e
push 1
push edx
push dword [esi]
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
je 0x1000b57e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 0
jbe 0x1000b5a1
cmp dword [ebp + 0x28], 0
jbe 0x1000b5a1
push dword [esi]
push 1
push ebx
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
je 0x1000b5a1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x1000b5c2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000b5b6
push 0x14
lea esi, [ebp - 0x5c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000b5c2
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret