Function at 0x10c9560
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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 0x10c9627
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.010ac2d2
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 0x10c95e3
test ecx, ecx
je 0x10c95e3
add edi, 4
mov dword [ebp - 4], edi
cmp ecx, 2
mov esi, dword [ebp + 0xc]
jne 0x10c9712
mov ecx, edi
add edi, 0xf
test ax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edi
je 0x10c9619
movzx eax, word [0x10eec4c]
movzx ecx, word [0x10eec48]
lea eax, [eax + ecx - 0xd]
mov dword [ebp - 0x14], eax
jmp 0x10c96ce
movzx eax, word [ecx]
sub eax, 0xd
mov dword [ebp - 0x14], eax
jmp 0x10c9712
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 0x10c970b
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 0x10c966c
mov dword [ebp + 8], 0xfffffdf3
jmp 0x10c988c
push dword [ebx]
push 1
push 2
push 0x10eec48
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c9660
push dword [ebx]
push eax
push 2
push 0x10eec4c
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c9660
push dword [ebx]
push eax
push eax
push 0x10eec44
call esi
add esp, 0x10
cmp eax, 1
jne 0x10c9660
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 0x10c9660
mov esi, dword [ebp + 0xc]
xor ecx, ecx
cmp word [ebp - 0x10], cx
jne 0x10c987d
mov eax, dword [ebp - 8]
sub eax, ecx
je 0x10c97f1
dec eax
je 0x10c9762
dec eax
jne 0x10c9873
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
mov dword [ebp - 0xc], eax
jne 0x10c971e
cmp dword [esi + 0x48], eax
jae 0x10c973b
jmp 0x10c9805
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 3
je 0x10c9883
jmp 0x10c96ce
cmp dword [ebx + 0x2048], 2
je 0x10c973b
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push esi
push eax
push ebx
call fcn.010c93b3
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
xor ecx, ecx
cmp word [ebp + 8], cx
jne 0x10c985b
add edi, dword [ebp - 0x14]
cmp word [ebx + 0x204c], cx
je 0x10c9897
sub edi, dword [ebx + 0x2044]
jmp 0x10c989d
add dword [ebp - 0xc], 0xf
cmp word [ebx + 0x204c], cx
jne 0x10c9787
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0x48], eax
jae 0x10c97a2
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov word [eax], 0x100
jmp 0x10c980e
cmp dword [ebx + 0x2048], ecx
jne 0x10c97a2
push 0xf
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.010c93b3
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp word [ebp + 8], 0
jne 0x10c985b
cmp word [ebx + 0x2070], 0
mov dword [ebp - 0x18], edi
je 0x10c97d6
mov al, byte [0x10eec44]
mov byte [edi + 0xe], al
movzx eax, word [0x10eec4c]
movzx ecx, word [0x10eec48]
lea eax, [eax + ecx - 0xd]
jmp 0x10c97dc
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 0x10c96ce
cmp word [ebx + 0x204c], cx
push 4
pop eax
mov dword [ebp - 0xc], eax
jne 0x10c9824
cmp dword [esi + 0x48], eax
jae 0x10c9824
mov ecx, dword [ebp + 0x10]
mov word [ecx], 0x100
push eax
push esi
push ebx
mov dword [ebp - 0x10], 1
call fcn.010c9326
mov dword [ebp + 8], eax
jmp 0x10c96ce
cmp dword [edi], 0x33cc33cc
je 0x10c9867
push 6
add edi, 6
push esi
mov dword [ebp - 4], edi
call fcn.010ac2d2
cmp dword [edi], 0x33cc33cc
jne 0x10c9854
add edi, 4
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
jmp 0x10c96ce
mov dword [ebp + 8], 0xfffffdf6
mov dword [ebp - 0x10], 1
jmp 0x10c96ce
add edi, eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 8], 3
jne 0x10c96ce
cmp word [ebp + 8], cx
jne 0x10c988c
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 0x10c98c6
mov word [ebx + 0x2064], 1
mov word [edx], 0x100
jmp 0x10c98cb
mov word [edx], 9
test byte [eax + 0xe], 8
je 0x10c98da
mov word [ebx + 0x2062], 1
test byte [eax + 0xe], 0x20
je 0x10c9883
mov eax, dword [ebx + 0x203c]
add eax, dword [ebx + 0x102c]
mov word [ebx + 0x2074], 1
cmp eax, 0xfffffffe
jne 0x10c9883
mov word [ebx + 0x2062], cx
jmp 0x10c9883