Function at 0x4a447d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
je 0x4a471a
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x4a471a
cmp dword [ebp + 0x14], 1
mov dword [edi], ebx
jne 0x4a44bf
lea ecx, [esi + 0x150]
call fcn.004a41f5
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.004a472b
test eax, eax
jge 0x4a46f1
cmp dword [ebp + 0xc], 0
je 0x4a46d8
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
je 0x4a46d8
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
jne 0x4a452a
lea edi, [esi + 0x150]
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0049b965
test eax, eax
jne 0x4a452a
mov ecx, edi
call fcn.004a4217
mov ecx, edi
call fcn.004a4271
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.004a472b
test eax, eax
jge 0x4a46fd
push dword [ebp + 8]
call dword [0x74911188]
mov edi, dword [0x74911538]
push 4
push 0x74914b40
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call edi
test eax, eax
jne 0x4a45fa
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 8], 0x20000000
call fcn.004c3a6d
test eax, eax
mov dword [ebp - 4], eax
jl 0x4a46f1
mov eax, dword [esi + 0x10]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x4a4654
mov eax, dword [esi + 0x14]
cmp ecx, eax
jbe 0x4a45bc
add eax, 0xa
cmp eax, 0xa
jb 0x4a4654
cmp eax, 0x3fffffff
ja 0x4a4654
shl eax, 2
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0049c9af
test eax, eax
mov dword [ebp - 4], eax
jl 0x4a46f1
add dword [esi + 0x14], 0xa
mov eax, dword [0x749ae098]
mov ecx, dword [eax]
push 0x2c
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
je 0x4a45ee
push 0xb
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [0x749ae098]
mov ecx, dword [eax]
inc edi
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebx], eax
jne 0x4a465e
mov dword [ebp - 4], 0x8007000e
jmp 0x4a46e5
mov ebx, dword [ebp + 8]
push 4
push 0x74914b38
push ebx
call edi
test eax, eax
jne 0x4a4617
mov dword [ebp - 8], 0x40000000
jmp 0x4a4574
mov al, byte [ebx]
mov dword [ebp - 8], 0x10000000
mov ecx, ebx
jmp 0x4a463f
cmp al, 0x2e
je 0x4a4648
cmp al, 0x20
je 0x4a4648
cmp al, 9
je 0x4a4648
cmp al, 0xd
je 0x4a4648
cmp al, 0xa
je 0x4a4648
cmp al, 0x3a
je 0x4a4648
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4a4624
jmp 0x4a4574
mov dword [ebp - 4], 0x800cce21
jmp 0x4a46f1
mov eax, 0x8007000e
jmp 0x4a471f
mov esi, dword [ebp + 8]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0x10]
and dword [ebx + 0x10], 0
inc eax
mov dword [ebx + 0x1c], eax
mov word [ebx + 0x20], 0x1e
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
inc dword [ecx + 8]
mov eax, dword [ebx + 8]
push 0x19
xor edx, edx
pop esi
div esi
mov word [ebx + 0x14], dx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov dword [edx + eax*4], ebx
inc dword [ecx + 0x10]
mov eax, dword [ecx + 0x10]
dec eax
push eax
push 0
call fcn.004a4357
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
mov dword [eax], ebx
jmp 0x4a46df
mov dword [ebp - 4], 0x800cce05
cmp dword [ebp - 4], 0
jge 0x4a46f1
test ebx, ebx
je 0x4a46f1
push ebx
mov ecx, esi
call 0x4df49f
cmp dword [ebp + 0x14], 1
jne 0x4a4715
cmp dword [ebp - 0x14], 1
jne 0x4a470a
lea ecx, [esi + 0x150]
call fcn.004a42f1
jmp 0x4a4715
lea ecx, [esi + 0x150]
call fcn.004a4217
mov eax, dword [ebp - 4]
jmp 0x4a471f
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x10