Function at 0x4856da
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 0x69ef3c
push eax
xor ebx, ebx
push 1
push str.function2
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], ebx
call fcn.00584c90
mov edi, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x4858b0
push esi
jmp 0x4855c0
push 0x5a5bdc
push 0x69ef3c
call fcn.00554507
mov esi, eax
add esp, 8
test esi, esi
je 0x485889
push 0
push esi
call fcn.00484650
or dword [ebp - 8], eax
add esp, 8
cmp eax, 0x200
jg 0x485752
je 0x48573a
cmp eax, 0x10
jg 0x4856be
je 0x4856a6
cmp eax, 1
jg 0x48564b
je 0x485633
cmp eax, 0x80000000
jne case.0x4856d3.33
lea ecx, [edi + 0xbe]
push ecx
push esi
call fcn.00485190
add esp, 8
mov esi, eax
jmp case.0x4856d3.33
lea edx, [edi + 0xde]
push edx
push esi
call fcn.004851b0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
sub eax, 2
je 0x48568e
sub eax, 2
je 0x485676
sub eax, 4
jne case.0x4856d3.33
lea eax, [edi + 0x106]
push eax
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea ecx, [edi + 0xee]
push ecx
push esi
call fcn.004851b0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea edx, [edi + 0xe6]
push edx
push esi
call fcn.004851b0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea eax, [edi + 0x112]
push eax
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
add eax, 0xffffffe0
cmp eax, 0xe0
ja case.0x4856d3.33
movzx ecx, byte [eax + 0x4858e4]
jmp dword [ecx*4 + 0x4858d0]
lea edx, [edi + 0x11e]
push edx
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea eax, [edi + 0x12a]
push eax
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea ecx, [edi + 0x136]
push ecx
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea edx, [edi + 0x142]
push edx
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea eax, [edi + 0x14e]
push eax
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
cmp eax, 0x4000
jg 0x4857fb
je 0x4857e6
cmp eax, 0x1000
jg 0x4857c6
je 0x4857ae
cmp eax, 0x400
je 0x485796
cmp eax, 0x800
jne case.0x4856d3.33
lea ecx, [edi + 0x166]
push ecx
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea edx, [edi + 0x15a]
push edx
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea eax, [edi + 0x172]
push eax
push esi
call fcn.004851d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
cmp eax, 0x2000
jne case.0x4856d3.33
lea ecx, [edi + 0xf6]
push ecx
push esi
call fcn.004851b0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
lea edx, [edi + 0xfe]
push edx
push esi
call fcn.004851b0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x4856d3.33
cmp eax, 0x20000000
jg 0x48584e
je 0x48583a
cmp eax, 0x1000000
je 0x485826
cmp eax, 0x2000000
jne case.0x4856d3.33
lea eax, [edi + 0xce]
push eax
push esi
call fcn.00485190
add esp, 8
mov esi, eax
jmp case.0x4856d3.33
lea ecx, [edi + 0xd6]
push ecx
push esi
call fcn.00485190
add esp, 8
mov esi, eax
jmp case.0x4856d3.33
lea edx, [edi + 0xc6]
push edx
push esi
call fcn.00485190
add esp, 8
mov esi, eax
jmp case.0x4856d3.33
cmp eax, 0x40000000
je 0x48586e
test esi, esi
jne 0x485889
mov eax, dword [ebp - 4]
push eax
push esi
push esi
push 0xd1
call fcn.00426120
add esp, 0x10
jmp 0x485889
push 0
call fcn.00484710
mov ecx, dword [ebp - 0xc]
or ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, 0xb3000000
je 0x485889
inc ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 0x69ef3c
inc eax
push ecx
push eax
push str.function2
mov dword [ebp - 4], eax
call fcn.00584c90
add esp, 0x10
test eax, eax
jne 0x4855c0
pop esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], edx
mov dword [edi + 0xba], eax
test ebx, ebx
je 0x4858c9
or dword [edi], 0x80000000
pop edi
pop ebx
mov esp, ebp
pop ebp
ret