Function at 0x4842e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
test eax, 0x8000
je 0x4842f4
or dword [esi], 1
test eax, 0x800000
je 0x4842fe
or dword [esi], 2
test eax, 0x2000000
je 0x484308
or dword [esi], 8
test eax, 0x4000000
je 0x484312
or dword [esi], 0x10
mov eax, dword [esp + 0xc]
test al, 1
je 0x48431d
or dword [esi], 0x20
test al, 2
je 0x484327
or dword [esi], 0x80000
test eax, 0x200
je 0x484331
or dword [esi], 0x40
test eax, 0x1000
je 0x48433e
or dword [esi], 0x4000
test eax, 0x80000
je 0x48434b
or dword [esi], 0x80
test eax, 0x100000
je 0x484358
or dword [esi], 0x100
test eax, 0x800000
je 0x484362
or dword [esi], 4
test eax, 0x2000000
je 0x48436f
or dword [esi], 0x40000
test eax, 0x400000
je 0x48437d
or dword [esi + 4], 0x4000000
and eax, 0x18000000
push ebx
cmp eax, 0x18000000
jne 0x4843c0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00488950
add esp, 8
test al, al
jne 0x4843c0
mov ecx, dword [esp + 8]
mov eax, ecx
and eax, 6
cmp al, 6
jne 0x4843c0
and cl, 0xe0
mov bh, 1
cmp cl, 0xe0
sete bl
or dword [esi], 0x200
jmp 0x4843c4
xor bh, bh
xor bl, bl
cmp dword [esp + 0x18], 7
jb 0x48459a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 7
call fcn.004888e0
add esp, 0x18
test al, al
jne 0x484567
mov eax, dword [esp + 0x18]
test al, 8
je 0x484405
or dword [esi], 0x10000
test al, 0x20
je 0x484413
test bh, bh
je 0x484413
or dword [esi], 0x400
test eax, 0x100
je 0x484420
or dword [esi], 0x20000
test eax, 0x10000
je 0x484431
test bl, bl
je 0x484431
or dword [esi], 0x8000
test eax, 0x20000
je 0x484442
test bl, bl
je 0x484442
or dword [esi], 0x400000
test eax, 0x80000
je 0x484450
or dword [esi + 4], 0x200
test eax, 0x200000
je 0x484461
test bl, bl
je 0x484461
or dword [esi], 0x8000000
test eax, 0x800000
je 0x48446f
or dword [esi + 4], 0x4000
test eax, 0x4000000
je 0x484480
test bl, bl
je 0x484480
or dword [esi], 0x2000000
test eax, 0x8000000
je 0x484491
test bl, bl
je 0x484491
or dword [esi], 0x1000000
test eax, 0x10000000
je 0x4844a2
test bl, bl
je 0x4844a2
or dword [esi], 0x800000
test eax, 0x20000000
je 0x4844b0
or dword [esi + 8], 0x400
test eax, 0x40000000
je 0x4844c1
test bl, bl
je 0x4844c1
or dword [esi], 0x200000
test eax, eax
jns 0x4844cf
test bl, bl
je 0x4844cf
or dword [esi], 0x100000
mov eax, dword [esp + 0x10]
test al, 2
je 0x4844e1
test bl, bl
je 0x4844e1
or dword [esi], 0x4000000
test al, 0x40
je 0x4844ef
test bl, bl
je 0x4844ef
or dword [esi], 0x80000000
test eax, 0x100
je 0x4844fa
or dword [esi + 4], 1
test eax, 0x400
je 0x484509
test bh, bh
je 0x484509
or dword [esi + 4], 2
test eax, 0x800
je 0x484518
test bl, bl
je 0x484518
or dword [esi + 4], 4
test eax, 0x1000
je 0x484527
test bl, bl
je 0x484527
or dword [esi + 4], 8
test eax, 0x4000
je 0x484538
test bl, bl
je 0x484538
or dword [esi], 0x40000000
mov eax, dword [esp + 0x14]
test al, 4
je 0x48454a
test bl, bl
je 0x48454a
or dword [esi], 0x10000000
test al, 8
je 0x484558
test bl, bl
je 0x484558
or dword [esi], 0x20000000
test eax, 0x100
je 0x484567
test bl, bl
je 0x484567
or dword [esi + 4], 0x20
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 7
call fcn.004888e0
add esp, 0x18
test al, al
jne 0x48459a
test byte [esp + 8], 0x20
je 0x48459a
test bl, bl
je 0x48459a
or dword [esi + 4], 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
push SysReAllocString
call fcn.00488880
add esp, 0x14
cmp dword [esp + 8], 0x80000001
pop ebx
jb 0x484624
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
push SysReAllocString
call fcn.00488880
add esp, 0x14
test al, al
jne 0x484624
mov eax, dword [esp + 0xc]
test al, 0x40
je 0x4845f9
or dword [esi], 0x800
test eax, 0x800
je 0x484606
or dword [esi], 0x2000
test eax, 0x10000
je 0x484613
or dword [esi], 0x1000
test dword [esp + 0x10], 0x20000000
je 0x484624
or dword [esi + 4], 0x100
pop esi
pop ecx
ret