Function at 0x4b6490
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2e48]
test eax, eax
je 0x4b6ac0
mov eax, dword [esi]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ebx, dword [eax]
mov ecx, dword [esi + 0x2e48]
mov dword [esp + 0x28], ebx
mov edi, dword [eax + 4]
mov dword [esp + 0x2c], edi
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x34], edx
cmp dword [eax + 8], ebx
jle 0x4b6ac0
cmp dword [eax], ecx
jge 0x4b6ac0
cmp dword [eax + 0xc], edi
jle 0x4b6ac0
cmp dword [eax + 4], edx
jge 0x4b6ac0
mov al, byte [esi + 0x31d5]
test al, al
je 0x4b6517
mov ebp, dword [esi + 0x31f0]
jmp 0x4b651e
mov ebp, dword [esp + 0xe8]
lea edx, [esi + 0x2e20]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x5c], ebx
mov ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], 3
mov eax, dword [edx - 4]
test eax, eax
jle 0x4b6a3a
mov ebx, dword [edx - 4]
mov eax, ecx
add ecx, ebx
mov bl, byte [edx - 8]
test bl, bl
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
je 0x4b658e
mov ebx, dword [edx]
mov edx, dword [ebp]
test ebx, 0xfe000000
je 0x4b6591
mov ebx, dword [esi + 0x31f4]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov ecx, ebp
mov dword [ebx + 0xc], eax
call dword [edx + 0x34]
jmp 0x4b65b1
mov edx, dword [ebp]
mov ebx, dword [esi + 0xc74]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov ecx, ebp
mov dword [ebx + 0xc], eax
call dword [edx + 0x38]
mov ebx, dword [esi + 0x32a0]
lea edi, [esi + 0x332c]
push ebx
mov ecx, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
mov byte [esp + 0x16], 0
call fcn.0050b7c0
mov ecx, dword [esi + 0x3378]
push eax
add ecx, 8
call fcn.004cb6c0
test ah, 0x10
mov dword [esp + 0x14], eax
je 0x4b663c
mov eax, dword [esi + 0x32a0]
mov ecx, edi
push eax
call fcn.0050b7c0
mov edi, eax
mov eax, dword [esp + 0x14]
test edi, edi
jle 0x4b661f
test ah, 0x10
je 0x4b661f
mov eax, dword [esi + 0x3378]
dec edi
push edi
lea ecx, [eax + 8]
call fcn.004cb6c0
test edi, edi
jg 0x4b6606
test ah, 0x20
jne 0x4b663c
mov ecx, dword [esp + 0x14]
and eax, 0xfff
and ecx, 0xfff
cmp ecx, eax
jge 0x4b663c
mov byte [esp + 0x12], 1
push 0x1f
push 0x1a
mov ecx, esi
call fcn.004b6470
push 0x1e
push 0x19
mov ecx, esi
mov dword [esp + 0x84], eax
call fcn.004b6470
lea edi, [esi + 0x332c]
mov dword [esp + 0x40], eax
mov ecx, edi
call fcn.0050b760
cmp ebx, eax
jge 0x4b6a2a
jmp 0x4b6678
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jge 0x4b6a2a
push ebx
mov ecx, edi
call fcn.0050b7c0
mov ebx, eax
mov ecx, edi
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0050b780
mov edx, dword [esp + 0x20]
push ebx
cmp edx, eax
mov eax, dword [esi + 0x3378]
sete byte [esp + 0x17]
lea ecx, [eax + 8]
call fcn.004cb6c0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3378]
lea ecx, [ebx + 1]
push ecx
lea ecx, [eax + 8]
call fcn.004cb6c0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x3378]
push ebx
lea ecx, [eax + 8]
call fcn.004cae20
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
jne 0x4b66ed
xor ebx, ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov ecx, edx
and eax, 0xfff
and ecx, 0xfff
mov dword [esp + 0x18], eax
test byte [esp + 0x15], 0x20
je 0x4b6799
mov al, byte [esp + 0x13]
test al, al
je 0x4b6789
mov edx, dword [esp + 0x38]
mov ecx, edi
push edx
call fcn.0050bc00
test al, al
mov eax, dword [esp + 0x18]
je 0x4b675b
cmp eax, 0x400
jne 0x4b6744
or ebx, 0x80000000
mov byte [esp + 0x12], 0
jmp 0x4b682b
mov ecx, dword [esp + 0x7c]
mov eax, 1
shl eax, cl
mov byte [esp + 0x12], 0
or ebx, eax
jmp 0x4b682b
cmp eax, 0x400
jne 0x4b6772
or ebx, 0x40000000
mov byte [esp + 0x12], 0
jmp 0x4b682b
mov ecx, dword [esp + 0x40]
mov edx, 1
shl edx, cl
mov byte [esp + 0x12], 0
or ebx, edx
jmp 0x4b682b
or ebx, 0x20000000
mov byte [esp + 0x12], 0
jmp 0x4b682b
test dword [esp + 0x14], 0x1000
je 0x4b67eb
cmp byte [esp + 0x12], 0
je 0x4b67d0
test dh, 0x10
jne 0x4b6825
cmp eax, 0x400
jle 0x4b67c3
or ebx, 0x8000000
mov byte [esp + 0x12], 0
jmp 0x4b682b
or ebx, 0x10000000
mov byte [esp + 0x12], 0
jmp 0x4b682b
cmp eax, 0x400
jle 0x4b682b
cmp ecx, eax
jge 0x4b6825
cmp ecx, 0x400
jle 0x4b681d
or ebx, 0x8000000
jmp 0x4b682b
cmp eax, 0x400
jle 0x4b682b
cmp ecx, eax
jge 0x4b6825
test dh, 0x10
mov byte [esp + 0x12], 0
je 0x4b680d
or ebx, 0x20000000
mov byte [esp + 0x12], 1
jmp 0x4b682b
cmp ecx, 0x400
jle 0x4b681d
or ebx, 0x8000000
jmp 0x4b682b
or ebx, 0x10000000
jmp 0x4b682b
or ebx, 0x20000000
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
and ebx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x2d78]
mov dword [esp + 0x4c], edx
add eax, edx
mov dl, byte [ecx - 8]
mov dword [esp + 0x54], eax
test dl, dl
jne 0x4b69be
mov cl, byte [esp + 0x13]
mov byte [esp + 0x80], 0
test cl, cl
je 0x4b68a1
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x80]
inc eax
push eax
push 0x681374
push ecx
call fcn.0055f6f4
mov eax, dword [esp + 0x60]
add esp, 0xc
test byte [esi + 0x3328], 0x40
je 0x4b6904
mov eax, dword [esi + 0x3378]
mov edx, dword [esp + 0x38]
push edx
lea ecx, [eax + 8]
call fcn.004cb6c0
mov ecx, eax
mov edx, eax
sar ecx, 0x10
push ecx
mov ecx, eax
shr ecx, 9
not cl
and ecx, 8
and eax, 0x2000
and edx, 0xfff
or ecx, 0x57
neg eax
sbb al, al
push edx
and al, 0xe9
push ecx
add al, 0x5f
movsx edx, al
push edx
lea eax, [esp + 0x90]
push str._c_c__03X__03X
push eax
call fcn.0055f6f4
mov eax, dword [esp + 0x6c]
add esp, 0x18
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edi, dword [ebp]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x80]
mov dword [esp + 0x74], ecx
push edx
mov dword [esp + 0x7c], eax
call fcn.004b6ad0
add esp, 4
mov ecx, ebp
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esi + 0xc94]
push eax
call dword [edi + 0x58]
mov edi, dword [esp + 0x74]
mov ecx, dword [esi + 0xc74]
mov edx, dword [esi + 0xc6c]
mov ebp, dword [ebp]
sub edi, eax
push ecx
lea eax, [esp + 0x84]
push edx
push eax
sub edi, 3
call fcn.004b6ad0
mov edx, dword [esi + 0x2d7c]
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x44], ebp
push eax
mov eax, dword [esp + 0x7c]
push ecx
add edx, eax
lea ecx, [esi + 0xc94]
push edx
push ecx
mov edx, dword [esp + 0x8c]
sub esp, 0x10
mov ebp, dword [esp + 0x6c]
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 0xc], eax
mov ecx, ebp
call dword [edx + 0x48]
test ebx, ebx
je 0x4b69fc
lea ecx, [esi + 0x2a18]
xor edi, edi
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x4b69fc
test bl, 1
je 0x4b69e9
lea eax, [esi + 0xc94]
lea edx, [esp + 0x48]
push eax
push edx
push ebp
call fcn.0050cfa0
mov ecx, dword [esp + 0x18]
sar ebx, 1
inc edi
add ecx, 0x18
cmp edi, 0x20
mov dword [esp + 0x18], ecx
jl 0x4b69ce
mov ebx, dword [esp + 0x20]
mov eax, dword [esi + 0x2d78]
mov edx, dword [esp + 0x24]
lea edi, [esi + 0x332c]
inc ebx
add edx, eax
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
call fcn.0050b760
cmp ebx, eax
jl 0x4b6674
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
add edx, 0x10
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], eax
jne 0x4b653e
mov eax, dword [esi + 0xc24]
mov edx, dword [ebp]
push eax
mov dword [esp + 0x44], edx
sub esp, 0x10
mov eax, edi
mov edx, esp
mov dword [esp + 0x70], ebx
mov dword [edx], ecx
mov ecx, ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x54]
call dword [edx + 0x38]
mov al, byte [esi + 0x31d5]
test al, al
je 0x4b6ac0
mov esi, dword [esi + 0x31f0]
xor edx, edx
xor eax, eax
push esi
push edx
push eax
sub esp, 0x10
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x4c]
mov eax, esp
mov ebp, dword [ecx]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
call dword [ebp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 8