Function at 0x474340
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
test eax, eax
push esi
push edi
mov dword [ebp - 4], 0
je 0x474372
mov ecx, dword [ebp + 0x10]
push 4
push 0x103000
push ecx
push 0
call dword [0x4a11f4]
jmp 0x47437e
mov edx, dword [ebp + 0x10]
push edx
push 0
call dword [0x4a1194]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
jne 0x4743a4
mov eax, dword [ebp + 8]
push eax
call dword [0x4a1290]
mov dword [0xecc270], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push edi
je 0x4743aa
push 0xc19c3d8b
rol byte [eax], 1
mov edi, dword [0xd0c19c]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
xor edi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4743e8
mov ecx, dword [ebp + 8]
push ecx
call dword [0x4a1290]
mov dword [0xecc270], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, eax
push dword [ebp + 8]
je 0x4743f0
jnp 0xd108e82a
mov esi, dword [0xd0c1a4]
xor esi, 0xffffffff
call esi
add byte [ebx - 0x2900000a], al
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push edx
call fcn.00474250
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp + 8], esi
jne 0x47456c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
xor eax, 0xff82ad82
and eax, 0xffffff
xor edx, eax
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [ebx], edx
je 0x47450c
cmp edi, 8
jbe 0x47450c
test dword [eax + 0x34], 0x80000000
je 0x474459
lea ecx, [edi - 8]
push ecx
lea edx, [ebx + 8]
push edx
call fcn.00475a20
add esp, 8
push 0x202
lea esi, [edi - 8]
lea eax, [ebx + 8]
push esi
push eax
mov dword [ebp + 8], eax
call fcn.00476490
add esp, 0xc
test eax, eax
jne 0x474486
mov dword [0xecc270], 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0xecc278]
test eax, eax
je 0x47450c
mov eax, dword [ebp + 0x18]
test dword [eax + 0x34], 0x20000000
je 0x47450c
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp + 0x10], esi
cmp eax, eax
mov ebx, 0xffffffff
je 0x4744ae
push 0xc2680d8b
in al, dx
add byte [ebx - 0x133d93eb], cl
add byte [ecx + 0xecc278], ah
mov ecx, dword [0xecc268]
mov edx, dword [0xecc26c]
mov eax, dword [0xecc278]
xor ecx, ebx
xor edx, ebx
push ecx
push edx
push eax
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp - 8]
jne 0x4744d2
push 0x458fd0ff
clc
call eax
pop dword [ebp - 8]
pop dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add ecx, 8
sub ebx, 8
test eax, eax
mov dword [ebp + 0x10], ecx
jne 0x474509
mov dword [0xecc270], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push edi
push ebx
push edx
call fcn.00474250
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp + 8], esi
jne 0x47456c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
xor eax, 0xff82ad82
and eax, 0xffffff
xor edx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebx], edx
je 0x474568
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x47455f
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ebx
jmp 0x474556
mov eax, dword [ebp + 0x18]
test eax, eax
mov edi, dword [ebx + 4]
mov dword [ebp + 0x10], edi
je 0x4745ef
push 0x8000
push 0
push ebx
call dword [0x4a11fc]
mov eax, dword [0xecc278]
test eax, eax
je 0x474601
mov eax, dword [ebp + 0x18]
test dword [eax + 0x34], 0x40000000
je 0x474601
xor eax, eax
mov ebx, 0xffffffff
je 0x4745a6
push 0xc2680d8b
in al, dx
add byte [ebx - 0x133d93eb], cl
add byte [ecx + 0xecc278], ah
mov ecx, dword [0xecc268]
mov edx, dword [0xecc26c]
mov eax, dword [0xecc278]
xor ecx, ebx
xor edx, ebx
push ecx
push edx
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
jne 0x4745c7
ud0
call eax
pop dword [ebp + 8]
pop dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4745fb
mov dword [0xecc270], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x4a1190]
jmp 0x474556
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x204
push edi
push esi
call fcn.00476490
add esp, 0xc
test eax, eax
jne 0x474556
pop edi
pop esi
mov dword [0xecc270], 4
pop ebx
mov esp, ebp
pop ebp
ret