Function at 0x4f4900
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x589bbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], edi
call fcn.00520ed0
mov eax, dword [edi + 0x20]
test eax, eax
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x40], 0
je 0x4f49e5
cmp dword [eax + 0x1a], 0
je 0x4f49e5
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4f495c
cmp eax, 0xfffffffe
jne 0x4f49e5
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.004e8510
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + 0x1a]
test eax, eax
mov byte [esp + 0x40], 1
je 0x4f497e
lea esi, [eax + 4]
jmp 0x4f4980
xor esi, esi
mov ecx, dword [esi]
test ecx, ecx
mov dword [esp + 0x50], esi
je 0x4f498f
call fcn.00520b70
mov edx, dword [edi + 0x20]
mov ecx, dword [edx + 0x1a]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
push ebp
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x4c], 2
call eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [esp + 0x40], 1
je 0x4f49bc
call fcn.00520b80
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.005215e0
push 0
lea ecx, [esp + 0x10]
call fcn.00521110
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 0
call fcn.0051ac60
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebx
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x4f4aed
lea ecx, [esp + 0x14]
call fcn.00514470
lea ecx, [esi + 4]
push ecx
mov byte [esp + 0x48], 3
mov dword [esp + 0x58], esi
call fcn.00520b30
mov ecx, dword [esi + 8]
add esp, 4
test ecx, ecx
je 0x4f4a23
call fcn.00520b70
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ebp
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x4c], 4
call edx
test eax, eax
jne 0x4f4aab
mov eax, dword [esp + 0x10]
xor edi, edi
cmp dword [eax + 4], edi
jle 0x4f4ab6
mov ebx, 0x10
jmp 0x4f4a50
cmp dword [eax], 1
jle 0x4f4a62
lea ecx, [esp + 0x10]
call fcn.00520f40
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [ebx + eax]
mov edx, dword [edx + 0x54]
push 0x10000
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x4f4a9a
mov eax, dword [esp + 0x14]
mov ecx, dword [0x639ab4]
add eax, 0xc
push eax
call fcn.004d3570
mov ecx, dword [esp + 0x50]
push eax
call fcn.00521460
mov eax, dword [esp + 0x10]
add edi, 1
add ebx, 4
cmp edi, dword [eax + 4]
jl 0x4f4a50
jmp 0x4f4ab6
mov ecx, dword [edi + 0x4a]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
call eax
push 0
lea ecx, [esp + 0x14]
call fcn.00521110
mov ecx, dword [esi + 8]
test ecx, ecx
mov byte [esp + 0x44], 3
je 0x4f4ad2
call fcn.00520b80
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.005144a0
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x5a]
push ecx
lea ecx, [esp + 0x14]
call fcn.00521110
lea edx, [edi + 0x2a]
mov byte [esp + 0x4c], 0
mov byte [esp + 0x54], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 8
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
test esi, esi
je 0x4f4c19
mov eax, dword [esi + 0xc]
test eax, 0x4000000
jne 0x4f4c0a
test ebp, 0x2000000
je 0x4f4b42
test eax, 0x2000000
jne 0x4f4c0a
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x50]
push eax
call fcn.00520e50
test eax, eax
jge 0x4f4c0a
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x4f4b93
test ebp, ebp
jns 0x4f4b93
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0xc]
push ebx
push eax
mov ecx, esi
call edx
cmp dword [eax + 0x10], 5
jne 0x4f4b93
mov eax, dword [eax + 8]
test eax, eax
je 0x4f4b93
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x90]
call eax
test eax, eax
je 0x4f4b93
mov ebx, 0x20
test ebp, 0x10000000
jne 0x4f4ba3
test ebx, 0x1000
jne 0x4f4c0a
test ebp, 0x8000000
jne 0x4f4bb0
test bl, 2
jne 0x4f4c0a
test bl, 0x20
je 0x4f4bbb
test ebp, ebp
jns 0x4f4c0a
jmp 0x4f4bd5
test ebp, 0x20000000
je 0x4f4bc8
test bl, 1
je 0x4f4bd5
test ebp, 0x40000000
je 0x4f4c0a
test bl, 1
je 0x4f4c0a
mov edi, dword [esi + 4]
test edi, edi
jne 0x4f4be3
mov byte [esp + 0x4c], 1
jmp 0x4f4c0a
cmp edi, 0x74
jne 0x4f4bed
mov byte [esp + 0x54], 1
mov ecx, dword [esp + 0x10]
cmp dword [ecx], 1
mov ebx, dword [esi + 0x14]
jle 0x4f4c02
lea ecx, [esp + 0x10]
call fcn.00520f40
mov edx, dword [esp + 0x10]
mov dword [edx + ebx*4 + 0x10], edi
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x4f4b21
mov edi, dword [esp + 0x18]
add dword [esp + 0x1c], 4
sub dword [esp + 0x20], 1
jne 0x4f4b13
cmp byte [esp + 0x54], 0
pop ebx
jne 0x4f4c66
test ebp, 0x8000000
je 0x4f4c66
cmp dword [edi + 0x4e], 0x20000089
je 0x4f4c5b
cmp dword [edi + 0x24], 0
je 0x4f4c66
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0x20636f6c
call edx
test eax, eax
je 0x4f4c66
push 0x74
lea ecx, [esp + 0x10]
call fcn.00521460
mov esi, dword [esp + 0x4c]
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005215e0
cmp byte [esp + 0x48], 0
je 0x4f4c88
push 0
mov ecx, esi
call fcn.00521460
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.00520f00
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc