Function at 0x485690
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x17e
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 1
mov dword [ebp - 8], esi
call fcn.005517e0
mov eax, dword [ebp + 0xc]
push 0x69267c
push eax
push 1
push str.function
call fcn.005845e0
add esp, 0x1c
test eax, eax
je 0x4859e2
jmp 0x4856e0
push 0x5a4bd4
push 0x69267c
call fcn.00553e97
mov esi, eax
add esp, 8
test esi, esi
je 0x4859ad
push 0
push esi
call fcn.00484af0
add esp, 8
or ebx, eax
cmp eax, 0x10000
jg 0x485872
je 0x48585e
cmp eax, 0x20
jg 0x4857ea
je 0x4857de
dec eax
cmp eax, 0xf
ja case.0x48573a.3
movzx ecx, byte [eax + 0x485a08]
jmp dword [ecx*4 + 0x4859f0]
lea edx, [edi + 0x7e]
push edx
push esi
call fcn.00485520
add esp, 8
mov esi, eax
or ebx, 0x80000000
jmp case.0x48573a.3
lea eax, [edi + 0x86]
push eax
jmp 0x485745
lea ecx, [edi + 0xa2]
push ecx
push esi
call fcn.00485540
mov ecx, dword [edi + 0xaa]
mov esi, eax
and ecx, 0xffff
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 8
mov dword [edi + 0xaa], eax
or ebx, 0x80000000
jmp case.0x48573a.3
lea ecx, [edi + 0x96]
push ecx
push esi
call fcn.00485540
add esp, 8
mov esi, eax
or ebx, 0x80000000
jmp case.0x48573a.3
lea edx, [edi + 0xae]
push edx
push esi
call fcn.00485540
add esp, 8
mov esi, eax
or ebx, 0x80000000
jmp case.0x48573a.3
lea eax, [edi + 0x8e]
push eax
jmp 0x485745
cmp eax, 0x2000
jg 0x48583f
je 0x485829
sub eax, 0x40
je 0x485815
sub eax, 0x40
jne case.0x48573a.3
lea ecx, [edi + 0x6e]
push ecx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea edx, [edi + 0x76]
push edx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
push 4
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00485340
add esp, 0xc
mov esi, eax
jmp case.0x48573a.3
cmp eax, 0x4000
jne case.0x48573a.3
lea ecx, [edi + 0x66]
push ecx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea edx, [edi + 0x5e]
push edx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
cmp eax, 0x400000
jg 0x48591f
je 0x48590e
cmp eax, 0x80000
jg 0x4858da
je 0x4858c6
cmp eax, 0x20000
je 0x4858b2
cmp eax, 0x40000
jne case.0x48573a.3
lea eax, [edi + 0x4e]
push eax
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea ecx, [edi + 0x56]
push ecx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea edx, [edi + 0x46]
push edx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
cmp eax, 0x100000
je 0x4858fd
cmp eax, 0x200000
jne case.0x48573a.3
lea eax, [edi + 0x34]
push eax
push esi
call fcn.00485560
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea ecx, [edi + 0x3e]
push ecx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
lea edx, [edi + 0x2c]
push edx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
cmp eax, 0x20000000
jg 0x48596d
je 0x48595a
cmp eax, 0x800000
je 0x485949
cmp eax, 0x10000000
jne case.0x48573a.3
push 0
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00485340
add esp, 0xc
mov esi, eax
jmp case.0x48573a.3
lea ecx, [edi + 0x24]
push ecx
push esi
call fcn.00485500
add esp, 8
mov esi, eax
jmp case.0x48573a.3
push 0
lea edx, [edi + 0xc]
push edx
push esi
call fcn.00485340
add esp, 0xc
mov esi, eax
jmp case.0x48573a.3
cmp eax, 0x40000000
je 0x48598d
test esi, esi
jne 0x4859ad
mov eax, dword [ebp - 4]
push eax
push esi
push esi
push 0xd1
call fcn.00425f40
add esp, 0x10
jmp 0x4859ad
push 0
call fcn.00484bb0
mov ecx, dword [ebp - 8]
or ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, 0xff60c0
je 0x4859ad
or ebx, 0x80000000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 0x69267c
inc eax
push ecx
push eax
push str.function
mov dword [ebp - 4], eax
call fcn.005845e0
add esp, 0x10
test eax, eax
jne 0x4856e0
mov edx, dword [ebp - 8]
mov dword [edi], ebx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], esi
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret