Function at 0x100010f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
xor eax, eax
push edi
push ebx
mov dword [ebp - 0x20], esi
mov dword [esi], 0x10039264
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov byte [ebp - 0x18], 0
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
call fcn.1001d24f
add esp, 8
cmp eax, 0xffffffff
je 0x10001477
push 0x10039258
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
call fcn.1001d173
add esp, 0xc
cmp dword [ebp - 8], edi
je 0x10001477
push edi
push edi
push edi
push 0x10039250
call fcn.100078a0
push eax
mov dword [ebp - 4], eax
call fcn.100093f0
mov ecx, dword [ebp - 4]
push 0x40
push 0x1001cffc
push ecx
mov dword [ebp - 0xc], eax
call fcn.1000d210
push edi
push eax
call fcn.1001d268
mov edx, dword [ebp - 8]
push edx
push 4
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.1001cfdc
add esp, 0x38
cmp eax, 4
jge 0x100011c5
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001ccc0
push edi
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
call fcn.10008a40
mov eax, dword [ebp - 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 0x18]
push edi
push ecx
call fcn.10008ea0
mov edx, dword [ebp - 8]
add esp, 0xc
push edx
test eax, eax
je 0x100011fe
call fcn.1001ccc0
push edi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.10008a40
mov eax, dword [ebp - 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.1001cb83
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.10009b00
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push edi
push 0x10
push edx
push eax
call fcn.10008c00
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001ccc0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x20]
push edx
push eax
call fcn.10007840
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push ecx
push edx
mov dword [esi + 8], eax
call fcn.10007860
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.10007880
movzx edi, al
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
add eax, eax
add eax, eax
push eax
call fcn.1001cab9
mov edx, dword [ebp - 0xc]
xor ebx, ebx
cmp edi, 6
sete bl
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push edx
push eax
add ebx, 3
mov dword [ebp - 0x24], ebx
call fcn.10007820
add esp, 0x44
sub edi, 2
je 0x100013f3
sub edi, 4
je 0x100012c2
mov ecx, dword [ebp - 8]
push ecx
call fcn.1001ccc0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
call fcn.10008a40
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x14], 0
jbe 0x10001465
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x10], edi
mov edx, dword [esi + 8]
imul edx, dword [ebp - 0x24]
xor ebx, ebx
test edx, edx
jbe 0x100013d8
lea esp, [esp]
mov eax, dword [edi]
mov al, byte [eax + ebx + 3]
cmp al, 0xff
jae 0x1000138d
mov edx, dword [edi]
movzx edi, byte [edx + ebx + 2]
movzx eax, al
imul edi, eax
mov dword [ebp - 0x1c], eax
add edi, 0x7f
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
movzx edi, byte [edx + ebx + 1]
imul edi, dword [ebp - 0x1c]
add edi, 0x7f
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 4]
mov byte [ecx + edx + 1], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
movzx edi, byte [edx + ebx]
imul edi, dword [ebp - 0x1c]
inc ecx
add edi, 0x7f
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
mov edx, dword [esi + 4]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dl, byte [edx + ebx + 3]
mov edi, eax
jmp 0x100013bd
mov eax, dword [edi]
movzx eax, byte [eax + ebx + 2]
mov edx, dword [esi + 4]
mov byte [ecx + edx], al
mov edx, dword [edi]
movzx edx, byte [edx + ebx + 1]
mov eax, dword [esi + 4]
mov byte [ecx + eax + 1], dl
mov eax, dword [edi]
movzx eax, byte [ebx + eax]
mov edx, dword [esi + 4]
inc ecx
inc ecx
mov byte [ecx + edx], al
mov edx, dword [edi]
movzx edx, byte [edx + ebx + 3]
mov eax, dword [esi + 4]
inc ecx
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x24]
mov edx, dword [esi + 8]
imul edx, eax
add ebx, eax
inc ecx
cmp ebx, edx
jb 0x100012f0
mov eax, dword [ebp - 0x14]
inc eax
add edi, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
cmp eax, dword [esi + 0xc]
jb 0x100012db
mov dword [ebp - 0x1c], ecx
jmp 0x10001465
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x14], 0
jbe 0x10001465
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi + 8]
imul edx, ebx
xor ecx, ecx
test edx, edx
jbe 0x10001453
mov edx, dword [edi]
movzx edx, byte [edx + ecx + 2]
mov ebx, dword [esi + 4]
mov byte [eax + ebx], dl
mov edx, dword [edi]
movzx edx, byte [edx + ecx + 1]
mov ebx, dword [esi + 4]
mov byte [eax + ebx + 1], dl
mov edx, dword [edi]
movzx edx, byte [ecx + edx]
mov ebx, dword [esi + 4]
inc eax
mov byte [eax + ebx + 1], dl
mov edx, dword [esi + 4]
mov ebx, dword [ebp - 0x24]
inc eax
inc eax
mov byte [eax + edx], 0xff
mov edx, dword [esi + 8]
imul edx, ebx
add ecx, ebx
inc eax
cmp ecx, edx
jb 0x10001411
mov ecx, dword [ebp - 0x14]
inc ecx
add edi, 4
mov dword [ebp - 0x14], ecx
cmp ecx, dword [esi + 0xc]
jb 0x10001405
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.10008a40
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4