Function at 0x4b8ef0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x38]
test byte [eax], 8
mov dword [esp + 4], eax
jne 0x4b8f11
mov dword [0x576afc], 0x6f
xor eax, eax
pop esi
pop ecx
ret
push ebp
lea ebp, [esi + 0x18]
push ebp
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8f97
lea eax, [esi + 0x1c]
push eax
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8f97
lea eax, [esi + 0x20]
push eax
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8f97
lea eax, [esi + 0x24]
push eax
mov edx, esi
call fcn.004b8b00
add esp, 4
test eax, eax
je 0x4b8f97
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4b8f73
push 1
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4b8f88
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004c1e2a
add esp, 0x10
cmp eax, 1
je 0x4b8f9d
mov dword [0x576afc], 0x66
pop ebp
xor eax, eax
pop esi
pop ecx
ret
mov cl, byte [esp + 0x10]
movzx eax, cl
push ebx
push edi
mov edi, eax
and edi, 7
and eax, 0x40
add edi, 1
test cl, cl
mov dword [esi + 0x28], eax
jns 0x4b905d
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4b8fd2
cmp dword [esi + 0x30], 0
jne 0x4b8fd2
push eax
call fcn.004b9fc0
add esp, 4
mov ecx, edi
mov edx, 1
shl edx, cl
push 0
push edx
call fcn.004b9f30
xor ebx, ebx
add esp, 8
mov dword [esi + 0x2c], eax
cmp dword [eax], ebx
jle 0x4b905d
xor edi, edi
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b900a
push 3
lea eax, [esp + 0x1c]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4b901f
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [esp + 0x20]
push 1
push edx
call fcn.004c1e2a
add esp, 0x10
cmp eax, 3
jne 0x4b9081
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x18]
mov byte [edi + ecx], dl
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
movzx edx, byte [esp + 0x19]
mov byte [ecx + edi + 1], dl
mov eax, dword [esi + 0x2c]
movzx edx, byte [esp + 0x1a]
mov ecx, dword [eax + 8]
mov byte [ecx + edi + 2], dl
mov eax, dword [esi + 0x2c]
add ebx, 1
add edi, 3
cmp ebx, dword [eax]
jl 0x4b8ff1
mov ecx, dword [esi + 0x30]
xor ebx, ebx
cmp ecx, ebx
je 0x4b9093
mov eax, dword [esi + 0x14]
add eax, 1
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
add edx, edx
push edx
push ecx
call fcn.004c2a84
add esp, 8
jmp 0x4b909d
pop edi
pop ebx
pop ebp
mov dword [0x576afc], 0x66
xor eax, eax
pop esi
pop ecx
ret
push 0x28
call fcn.004c2308
add esp, 4
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4b90b6
pop edi
pop ebx
pop ebp
mov dword [0x576afc], 0x6d
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov dword [edi], edx
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x14], ecx
cmp dword [esi + 0x2c], ebx
je 0x4b912f
push 0xc
call fcn.004c2308
mov dword [edi + 0x14], eax
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x18], eax
mov ecx, dword [esi + 0x34]
push 3
mov dword [edi + 0x1c], ecx
call fcn.004c2308
mov edx, dword [edi + 0x14]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi + 0x14]
mov dx, word [eax + 8]
add eax, 8
add esp, 8
add ecx, 8
mov word [ecx], dx
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x24]
add dword [esi + 0x14], 1
mov eax, esi
mov dword [edx + 0x34], ecx
call fcn.004b8c20
pop edi
pop ebx
pop ebp
mov eax, 1
pop esi
pop ecx
ret