Function at 0x489668
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], esi
jne 0x489699
push ebx
push esi
call fcn.00412371
mov esi, dword [esi + 0x28]
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], esi
jne 0x489699
mov eax, 0x80070057
jmp 0x489b62
lea eax, [ebp + 8]
push edi
push eax
call fcn.0043dae7
mov edi, dword [ebp + 8]
mov esi, 0x80000000
push 0x2c
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ebx
call fcn.004a7e7b
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
and word [ebx], 0
and dword [ebp - 0x34], 0
pop ecx
pop ecx
mov word [ebp - 0x30], ax
jmp 0x489731
push 7
push edi
push 0x4c5bac
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4898b1
mov dword [ebp - 0xc], 0x40000000
lea eax, [ebp + 8]
push eax
call fcn.00405615
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
je 0x489724
and word [eax], 0
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dae7
pop ecx
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
je 0x4896e9
mov ax, word [ebp - 0x30]
push dword [ebp - 8]
mov word [ebx], ax
mov ebx, dword [ebp - 4]
or ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x48]
call fcn.004462b2
mov esi, 0x4bca0c
push esi
lea ecx, [ebp - 0x10]
call fcn.0044cd74
push esi
lea ecx, [ebp - 4]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0xc]
call fcn.0044cd74
push esi
lea ecx, [ebp - 0x3c]
call fcn.0044cd74
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
xor eax, eax
cmp word [edi], 0x2a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov byte [ebp + 0x13], al
jne 0x4897ab
inc edi
lea eax, [ebp + 8]
inc edi
push eax
mov byte [ebp + 0x13], 1
mov dword [ebp + 8], edi
call fcn.0043dae7
pop ecx
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446d58
mov ecx, dword [ebp - 8]
add esp, 0xc
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.00402eb0
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x48989e
push 2
pop edi
add dword [ebp + 8], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00456f8f
push eax
call fcn.004500a2
mov eax, dword [ebp + 8]
add esp, 0x14
cmp word [eax], si
jne 0x48989e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00456f8f
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00446e14
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48989e
add dword [ebp + 8], edi
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00446e48
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48989e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00456f8f
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00446d58
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x48989e
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00456f8f
push dword [eax]
call fcn.00450422
pop ecx
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x13], 0
pop edi
je 0x489af2
mov eax, dword [ebp - 8]
jmp 0x489afb
push 6
push edi
push 0x4c5ba4
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4898d1
mov dword [ebp - 0xc], 0x20000000
jmp 0x489708
push 5
push edi
push 0x4c73b8
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4898ed
mov dword [ebp - 0xc], esi
jmp 0x489708
push 8
push edi
push 0x4c80e0
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48990a
or byte [ebp - 2], 0x80
jmp 0x489708
push 6
push edi
push 0x4c80d8
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x489927
or byte [ebp - 2], 0x20
jmp 0x489708
push 7
push edi
push 0x4c80d0
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x489944
or byte [ebp - 2], 0x40
jmp 0x489708
push 8
push edi
push 0x4c80c4
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x489961
or byte [ebp - 2], 0x50
jmp 0x489708
push 7
push edi
push 0x4c5558
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48997e
or byte [ebp - 2], 0x10
jmp 0x489708
push 4
push edi
push 0x4c5cd4
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x48999b
or byte [ebp - 2], 8
jmp 0x489708
push 3
push edi
push 0x4c553c
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4899b8
or byte [ebp - 1], 2
jmp 0x489708
push 2
push edi
push 0x4c80c0
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x4899da
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
jmp 0x489708
push 3
push edi
push 0x4c80bc
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x489a3e
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.00443f5b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 6
mov dword [ebp + 8], edi
call fcn.00458f20
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040567a
add esp, 0x18
test eax, eax
jle 0x489a36
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
jmp 0x489ae8
push 6
push edi
push 0x4c80b4
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x489a74
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 0xc
mov dword [ebp + 8], edi
call fcn.00458f20
add esp, 0x10
jmp 0x48972e
push 7
push edi
push 0x4c7b64
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x489708
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
call fcn.00443f5b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
add edi, 0xe
mov dword [ebp + 8], edi
call fcn.00458f20
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00446e83
movsx eax, ax
add esp, 0x18
test eax, eax
je 0x489acf
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], ecx
cmp eax, 3
jge 0x489ada
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
cmp eax, 4
jge 0x489ae5
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x20]
call fcn.0043db4f
jmp 0x48972e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x194]
push dword [ebp - 0x24]
movzx ecx, word [ebp - 0x20]
push dword [ebp - 0x14]
or ecx, ebx
push dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00489108
lea ecx, [ebp - 0x3c]
call fcn.0043db4f
lea ecx, [ebp - 0xc]
call fcn.0043db4f
lea ecx, [ebp - 4]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x48]
call fcn.0043db4f
lea ecx, [ebp - 0x34]
call fcn.0043db4f
xor eax, eax
pop esi
pop ebx
leave
ret 0xc