Function at 0x4d9530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 1
push 0xe
mov ecx, dword [ebp - 0x424]
add ecx, 0x2b4
push ecx
call fcn.0041da81
add esp, 0x10
cmp eax, 1
jne 0x4d97b6
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 0x70]
sub eax, 0xe
mov ecx, dword [ebp - 0x424]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
mov eax, dword [ebp - 0x424]
add eax, 0x2c4
push eax
call fcn.0041da81
add esp, 0x10
cmp eax, 1
jne 0x4d97b6
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx + 0x70]
sub edx, 0x28
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp - 0x424]
movzx edx, word [ecx + 0x2d2]
cmp edx, 8
jne 0x4d9745
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x2e4]
mov dword [ebp - 0x40c], ecx
cmp dword [ebp - 0x40c], 0
jne 0x4d95f6
mov dword [ebp - 0x40c], 0x100
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x40c]
push eax
push 4
lea ecx, [ebp - 0x408]
push ecx
call fcn.0041da81
add esp, 0x10
mov edx, dword [ebp - 0x40c]
shl edx, 2
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x70]
sub ecx, edx
mov edx, dword [ebp - 0x424]
mov dword [edx + 0x70], ecx
mov dword [ebp - 0x410], 0
jmp 0x4d964a
mov eax, dword [ebp - 0x410]
add eax, 1
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp - 0x410]
cmp ecx, dword [ebp - 0x40c]
jge 0x4d96d2
mov edx, dword [ebp - 0x410]
movzx eax, byte [ebp + edx*4 - 0x406]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x410]
movzx edx, byte [ebp + ecx*4 - 0x407]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x410]
movzx ecx, byte [ebp + eax*4 - 0x408]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x41c]
shl edx, 0x10
and edx, 0xff0000
mov eax, dword [ebp - 0x418]
shl eax, 8
and eax, 0xff00
or edx, eax
mov ecx, dword [ebp - 0x414]
and ecx, 0xff
or edx, ecx
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4], edx
jmp 0x4d963b
cmp dword [ebp + 0x10], 0
je 0x4d9745
mov edx, dword [ebp - 0x424]
cmp dword [edx + 0x34], 0
jne 0x4d9706
push 0x440
call fcn.00413380
add esp, 4
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x420]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x424]
cmp dword [edx + 0x34], 0
je 0x4d9745
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x34]
add ecx, 0x3f
and ecx, 0xffffffc0
mov edx, dword [ebp - 0x424]
mov dword [edx + 0x38], ecx
push 0x400
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx + 0x38]
push edx
call fcn.004198f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4d9788
mov eax, dword [ebp - 0x424]
movzx ecx, word [eax + 0x2d2]
cmp ecx, 8
jne 0x4d9788
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x424]
mov ecx, dword [edx + 0x2c8]
imul ecx, dword [eax + 0x2cc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x424]
mov dword [edx + 0x3c], 1
jmp 0x4d97a7
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + 0x2c8]
shl ecx, 2
mov edx, dword [ebp - 0x424]
imul ecx, dword [edx + 0x2cc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jge 0x4d97b6
mov eax, dword [ebp - 4]
imul eax, eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc