Function at 0x10ba00c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x54]
xor eax, eax
cmp word [ebx + 0x204c], ax
push esi
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
je 0x10ba0d1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x206c]
mov esi, dword [eax + 0x38]
add esi, dword [eax + 0x50]
mov edi, dword [ebx + 0x2068]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x206c]
push eax
call fcn.0109f691
mov ax, word [ebx + 0x2070]
test ax, ax
mov edi, dword [ebx + 0x2044]
mov ecx, dword [ebx + 0x2048]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ecx
je 0x10ba08d
test ecx, ecx
je 0x10ba08d
add edi, 4
mov dword [ebp - 4], edi
cmp ecx, 2
mov esi, dword [ebp + 0xc]
jne 0x10ba1bc
mov ecx, edi
add edi, 0xf
test ax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edi
je 0x10ba0c3
movzx eax, word [0x10df404]
movzx ecx, word [0x10df400]
lea eax, [eax + ecx - 0xd]
mov dword [ebp - 0x14], eax
jmp 0x10ba178
movzx eax, word [ecx]
sub eax, 0xd
mov dword [ebp - 0x14], eax
jmp 0x10ba1bc
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x38]
add edi, dword [esi + 0x50]
cmp word [ebx + 0x2070], ax
mov dword [ebp - 4], edi
je 0x10ba1b5
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll_fread]
push 1
mov dword [ebp - 8], eax
lea eax, [ebx + 0x23e8]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x10ba116
mov dword [ebp + 8], 0xfffffdf3
jmp 0x10ba336
push dword [ebx]
push 1
push 2
push 0x10df400
call esi
add esp, 0x10
cmp eax, 1
jne 0x10ba10a
push dword [ebx]
push eax
push 2
push 0x10df404
call esi
add esp, 0x10
cmp eax, 1
jne 0x10ba10a
push dword [ebx]
push eax
push eax
push 0x10df3fc
call esi
add esp, 0x10
cmp eax, 1
jne 0x10ba10a
push dword [ebx]
movzx eax, byte [ebx + 0x23e8]
push eax
lea eax, [ebx + 0x2084]
push 8
push eax
call esi
movzx ecx, byte [ebx + 0x23e8]
add esp, 0x10
cmp eax, ecx
jne 0x10ba10a
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp word [ebp - 0x10], cx
jne 0x10ba327
mov eax, dword [ebp - 8]
sub eax, ecx
je 0x10ba29b
dec eax
je 0x10ba20c
dec eax
jne 0x10ba31d
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
mov dword [ebp - 0xc], eax
jne 0x10ba1c8
cmp dword [esi + 0x48], eax
jae 0x10ba1e5
jmp 0x10ba2af
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 3
je 0x10ba32d
jmp 0x10ba178
cmp dword [ebx + 0x2048], 2
je 0x10ba1e5
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push esi
push eax
push ebx
call fcn.010b9e7d
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
xor ecx, ecx
cmp word [ebp + 8], cx
jne 0x10ba305
add edi, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
je 0x10ba341
sub edi, dword [ebx + 0x2044]
jmp 0x10ba347
add dword [ebp - 0xc], 0xf
cmp word [ebx + 0x204c], cx
jne 0x10ba231
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0x48], eax
jae 0x10ba24c
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov word [eax], pe_nt_image_headers32
jmp 0x10ba2b8
cmp dword [ebx + 0x2048], ecx
jne 0x10ba24c
push 0xf
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.010b9e7d
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp word [ebp + 8], 0
jne 0x10ba305
cmp word [ebx + 0x2070], 0
mov dword [ebp - 0x18], edi
je 0x10ba280
mov al, byte [0x10df3fc]
mov byte [edi + 0xe], al
movzx eax, word [0x10df404]
movzx ecx, word [0x10df400]
lea eax, [eax + ecx - 0xd]
jmp 0x10ba286
movzx eax, word [edi]
sub eax, 0xd
add edi, 0xf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 2
jmp 0x10ba178
cmp word [ebx + 0x204c], cx
push 4
pop eax
mov dword [ebp - 0xc], eax
jne 0x10ba2ce
cmp dword [esi + 0x48], eax
jae 0x10ba2ce
mov ecx, dword [ebp + 0x10]
mov word [ecx], pe_nt_image_headers32
push eax
push esi
push ebx
mov dword [ebp - 0x10], 1
call fcn.010b9df7
mov dword [ebp + 8], eax
jmp 0x10ba178
cmp dword [edi], 0x33cc33cc
je 0x10ba311
push 6
add edi, 6
push esi
mov dword [ebp - 4], edi
call fcn.0109f691
cmp dword [edi], 0x33cc33cc
jne 0x10ba2fe
add edi, 4
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
jmp 0x10ba178
mov dword [ebp + 8], 0xfffffdf6
mov dword [ebp - 0x10], 1
jmp 0x10ba178
add edi, eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 8], 3
jne 0x10ba178
cmp word [ebp + 8], cx
jne 0x10ba336
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2048], eax
mov ax, word [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 0x50]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x23dc], edi
test byte [eax + 0xe], 1
mov dword [ebp - 8], 3
je 0x10ba370
mov word [ebx + 0x2064], 1
mov word [edx], pe_nt_image_headers32
jmp 0x10ba375
mov word [edx], 9
test byte [eax + 0xe], 8
je 0x10ba384
mov word [ebx + 0x2062], 1
test byte [eax + 0xe], 0x20
je 0x10ba32d
mov eax, dword [ebx + 0x203c]
add eax, dword [ebx + 0x102c]
mov word [ebx + 0x2074], 1
cmp eax, 0xfffffffe
jne 0x10ba32d
mov word [ebx + 0x2062], cx
jmp 0x10ba32d