Function at 0x4ac420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
mov dword [ebp - 0xc], eax
test byte [eax], 8
jne 0x4ac442
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x1c]
call fcn.004ac9b0
test eax, eax
je 0x4ac43b
lea edx, [esi + 0x20]
mov ecx, esi
call fcn.004ac9b0
test eax, eax
je 0x4ac43b
lea edx, [esi + 0x24]
mov ecx, esi
call fcn.004ac9b0
test eax, eax
je 0x4ac43b
lea edx, [esi + 0x28]
mov ecx, esi
call fcn.004ac9b0
test eax, eax
je 0x4ac43b
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ac490
push 1
lea ecx, [ebp - 8]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ac4a3
push dword [ecx + 0x38]
lea eax, [ebp - 8]
push 1
push 1
push eax
call fcn.004eeb09
add esp, 0x10
mov ecx, dword [esi + 0x30]
cmp eax, 1
je 0x4ac4c5
mov dword [esi + 0x40], 0x66
call fcn.004ad040
mov dword [esi + 0x30], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp - 8]
movzx eax, dl
push edi
mov edi, eax
shr eax, 6
and eax, 1
and edi, 7
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x4ac4ed
call fcn.004ad040
mov dl, byte [ebp - 8]
mov dword [esi + 0x30], 0
push ebx
mov ebx, 1
test dl, dl
jns 0x4ac589
lea ecx, [edi + 1]
mov eax, ebx
shl eax, cl
xor edx, edx
mov ecx, eax
call fcn.004acfa0
mov dword [esi + 0x30], eax
test eax, eax
je 0x4ac642
xor ebx, ebx
cmp dword [eax], ebx
jbe 0x4ac584
xor edi, edi
nop
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4ac538
push 3
lea ecx, [ebp - 8]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ac54b
push dword [ecx + 0x38]
lea eax, [ebp - 8]
push 3
push 1
push eax
call fcn.004eeb09
add esp, 0x10
cmp eax, 3
jne 0x4ac5c3
mov eax, dword [esi + 0x30]
inc ebx
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 8]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 7]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
movzx eax, byte [ebp - 6]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x30]
cmp ebx, dword [eax]
jb 0x4ac520
mov ebx, 1
mov edi, dword [esi + 0x34]
test edi, edi
je 0x4ac5fb
mov ecx, dword [esi + 0x18]
inc ecx
cmp ecx, 0x10000
jb 0x4ac5e2
or eax, 0xffffffff
xor edx, edx
div ecx
cmp eax, 0x24
jae 0x4ac5e2
call fcn.004f7c83
pop ebx
pop edi
mov dword [eax], 0xc
xor eax, eax
mov dword [esi + 0x40], 0x6d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x30]
call fcn.004ad040
mov dword [esi + 0x40], 0x66
mov dword [esi + 0x30], 0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ecx + ecx*8]
shl eax, 2
push eax
push edi
call fcn.004ee932
add esp, 8
test eax, eax
je 0x4ac642
mov dword [esi + 0x34], eax
jmp 0x4ac60c
push 0x24
call fcn.004eec3a
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x4ac642
mov eax, dword [esi + 0x18]
movups xmm0, xmmword [esi + 0x1c]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x34]
movups xmmword [eax + ecx*4], xmm0
movq xmm0, qword [esi + 0x2c]
lea edi, [eax + ecx*4]
movq qword [edi + 0x10], xmm0
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4ac652
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
call fcn.004acfa0
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4ac652
pop ebx
pop edi
mov dword [esi + 0x40], 0x6d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x24]
inc dword [esi + 0x18]
mov dword [ecx + 0x34], eax
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4ac68f
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4ac6a2
push dword [edi + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004eeb09
add esp, 0x10
cmp eax, 1
jb 0x4ac5d9
movzx ecx, byte [ebp - 1]
cmp ecx, 8
jbe 0x4ac6c4
pop ebx
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [edi + 8], ecx
shl eax, cl
inc ecx
mov dword [edi + 0xc], eax
inc eax
mov dword [edi + 0x10], eax
inc eax
shl ebx, cl
mov dword [edi + 0x14], eax
mov eax, 0x1002
mov dword [edi + 0x18], ecx
mov ecx, 0x1000
mov dword [edi + 0x1c], ebx
mov byte [edi + 0x44], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0x1002
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
add edi, 0x2144
rep stosd dword es:[edi], eax
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret