Function at 0x10d0634
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x10e607c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x54]
mov ebx, dword [esi + 0x390]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xf8]
push eax
push 1
push 0x5b
push ebx
mov edi, ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x10d0698
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
test al, 0x20
jne 0x10d068f
test al, 0x10
je 0x10d068f
mov ax, 0x1e
jmp 0x10d0c2c
mov di, 0xfde7
jmp 0x10d0928
cmp dword [ebx + 0x14], 0
je 0x10d06af
cmp byte [ebx + 0x5a], 2
ja 0x10d06af
mov word [esi + 0xd2], 2
jmp 0x10d06b8
mov word [esi + 0xd2], 1
movzx eax, word [ebx]
push dword [ebp - 0x18]
sub eax, 0x5b
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
add edi, 0x5b
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10d068f
add edi, dword [ebp - 0x14]
cmp byte [ebx + 0x5a], 1
lea eax, [edi + 0x24]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x39
je 0x10d06fb
mov dword [ebp - 0x14], 0x3d
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10d068f
mov eax, dword [ebp - 0x1c]
add edi, dword [ebp - 0x14]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10d068f
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0xe4]
push eax
push 1
push dword [edi + 0x60]
call fcn.010937f6
mov eax, dword [edi + 0x74]
mov dword [ebp - 0xe4], eax
mov ax, word [ebx + 2]
mov word [ebp - 0xbe], ax
xor edi, edi
cmp byte [ebx + 0x5a], 1
jne 0x10d07da
mov dword [ebp - 0xd0], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
shr dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x18]
and eax, 2
mov dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 4
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 8
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 0x10
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 8
and eax, 0x20
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
shr eax, 1
and eax, 1
or dword [ebp - 0xd0], eax
jmp 0x10d07e3
mov eax, dword [ebx + 8]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcd], 0
mov al, byte [ebx + 0x59]
neg al
sbb eax, eax
and eax, 0x1000000
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 4]
and eax, 4
shl eax, 0x17
or dword [ebp - 0xd0], eax
mov eax, dword [ebx + 4]
and eax, 0x20000
shl eax, 9
or dword [ebp - 0xd0], eax
xor eax, eax
mov al, byte [ebx + 4]
xor ecx, ecx
inc ecx
and eax, ecx
mov word [ebp - 0xd4], ax
xor eax, eax
mov al, byte [ebx + 4]
and eax, 4
mov word [ebp - 0xb6], ax
mov al, byte [ebx + 0x56]
mov byte [ebp - 0xe0], al
mov al, byte [ebx + 0x57]
mov byte [ebp - 0xdf], al
mov dword [ebp - 0xbc], edi
mov word [ebp - 0xb8], di
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0xd8], eax
movzx ax, byte [ebx + 0x58]
mov word [ebp - 0xc0], ax
mov word [ebp - 0x2a], di
mov ax, word [ebx + 0x1c]
mov word [ebp - 0x44], ax
mov eax, dword [ebx + 0x14]
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x10d08b4
cmp byte [ebx + 0x5a], 2
ja 0x10d08b4
cmp word [esi + 0xd0], 2
jne 0x10d08b4
mov word [ebp - 0x3a], cx
mov word [ebp - 0x3c], 2
jmp 0x10d08bc
mov word [ebp - 0x3a], di
mov word [ebp - 0x3c], cx
mov al, byte [ebx + 0x5a]
mov byte [ebp - 0x38], al
movzx ax, byte [esi + 0x9d]
mov word [ebp - 0x92], ax
movzx ax, byte [ebx + 0x59]
mov word [ebp - 0x90], ax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xb0], eax
mov ax, word [ebx + 2]
mov word [ebp - 0xac], ax
mov ax, word [ebx + 0x1e]
mov word [ebp - 0xa2], ax
mov ax, word [ebx + 0x3e]
mov word [ebp - 0x6a], ax
cmp dword [esi + 0x388], edi
jne 0x10d0943
push ecx
push 0x800
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0x388], eax
jne 0x10d093a
mov di, 0xfdfc
push 1
push 1
push esi
call fcn.010b4ebf
mov ax, di
jmp 0x10d0c2c
mov word [esi + 0x38c], 0x800
mov eax, dword [esi + 0x388]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x5c], ecx
mov cx, word [esi + 0xb4]
mov word [ebp - 0x58], cx
movzx ecx, word [ebx + 0x46]
add ecx, ebx
mov dword [ebp - 0x64], ecx
mov cx, word [ebx + 0x44]
mov word [ebp - 0x60], cx
mov dword [ebp - 0x80], edi
mov word [ebp - 0x7c], di
mov cx, word [ebx + 0x28]
mov word [ebp - 0x40], cx
mov cx, word [ebx + 0x2c]
mov word [ebp - 0x42], cx
mov cx, word [ebx + 0x30]
mov word [ebp - 0x3e], cx
mov dword [ebp - 0xa8], eax
mov cx, word [esi + 0xa4]
cmp cx, di
je 0x10d09ca
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
xor eax, eax
mov al, byte [esi + 0x70]
push eax
push ecx
push dword [esi + 0xa0]
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d09d1
mov word [ebp - 0xa4], di
cmp byte [ebx + 0x5a], 1
jne 0x10d0a4f
movzx eax, word [ebx + 0x42]
add eax, ebx
mov dword [ebp - 0xa0], eax
mov ax, word [ebx + 0x40]
mov word [ebp - 0x9c], ax
movzx eax, word [ebx + 0x4a]
add eax, ebx
mov dword [ebp - 0x98], eax
mov ax, word [ebx + 0x48]
mov word [ebp - 0x94], ax
movzx eax, word [ebx + 0x4e]
add eax, ebx
mov dword [ebp - 0x70], eax
mov ax, word [ebx + 0x4c]
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
mov word [ebp - 0x2c], di
movzx ecx, word [eax + 0xa]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
mov cx, word [eax + 8]
mov word [ebp - 0x74], cx
movzx ecx, word [eax + 0xe]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x88], ecx
mov ax, word [eax + 0xc]
mov word [ebp - 0x84], ax
jmp 0x10d0bee
xor ecx, ecx
mov dword [ebp - 0xa0], eax
mov cx, word [ebx + 0x40]
cmp cx, di
je 0x10d0a84
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d0a8b
mov word [ebp - 0x9c], di
xor ecx, ecx
mov dword [ebp - 0x98], eax
mov cx, word [ebx + 0x48]
cmp cx, di
je 0x10d0ac0
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x4a]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d0ac7
mov word [ebp - 0x94], di
xor ecx, ecx
mov dword [ebp - 0x70], eax
mov cx, word [ebx + 0x4c]
cmp cx, di
je 0x10d0af6
xor eax, eax
mov al, byte [ebx + 0x58]
push eax
push eax
movzx eax, word [ebx + 0x4e]
push ecx
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d0afa
mov word [ebp - 0x6c], di
mov esi, dword [ebp - 0x20]
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x30], ecx
mov dx, word [esi + 4]
cmp dx, di
je 0x10d0b34
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 6]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d0b3b
mov word [ebp - 0x2c], di
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x78], eax
mov dx, word [esi + 8]
test dx, dx
je 0x10d0b6d
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 0xa]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x10]
jmp 0x10d0b72
and word [ebp - 0x74], 0
xor edx, edx
mov dword [ebp - 0x88], eax
mov dx, word [esi + 0xc]
test dx, dx
je 0x10d0ba7
xor eax, eax
mov al, byte [edi + 0x22]
push eax
push eax
movzx eax, word [esi + 0xe]
push edx
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010a0e57
mov ecx, dword [ebp - 0x30]
mov word [ebp - 0x84], ax
jmp 0x10d0baf
and word [ebp - 0x84], 0
mov ax, word [ebp - 0x2c]
test ax, ax
je 0x10d0bee
add word [ebp - 0x74], ax
cmp word [ebp - 0x74], ax
mov dword [ebp - 0x78], ecx
je 0x10d0be9
mov dword [ebp - 0x10], ecx
cmp byte [edi + 0x22], 1
movzx eax, ax
jne 0x10d0bdd
lea ecx, [eax + ecx - 1]
mov dword [ebp - 0x10], ecx
mov byte [ecx], 0x20
jmp 0x10d0be9
lea ecx, [eax + ecx - 2]
mov dword [ebp - 0x10], ecx
mov word [ecx], 0x20
and word [ebp - 0x2c], 0
push 0
lea esi, [ebx + 0x50]
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0xf4]
push eax
movsb byte es:[edi], byte [esi]
call fcn.010a1b16
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0x60]
call fcn.010930ee
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 4