Function at 0x481646
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov edi, ecx
mov dword [ebp - 0x10], edi
jne 0x481677
push esi
push edi
call fcn.00410eb0
mov edi, dword [edi + 0x28]
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp + 0xc], edi
jne 0x481677
mov eax, 0x80070057
jmp 0x481a35
lea eax, [ebp + 8]
push ebx
push eax
call fcn.00437e65
mov edi, dword [ebp + 8]
push 0x2c
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.004128fe
mov esi, dword [ebp - 0x18]
mov bx, word [esi]
and word [esi], 0
pop ecx
jmp 0x481856
push 7
push edi
push 0x4aef14
call fcn.00439124
add esp, 0xc
test al, al
je 0x4816cd
mov dword [ebp - 8], 0x40000000
jmp 0x48182e
push 6
push edi
push 0x4aef0c
call fcn.00439124
add esp, 0xc
test al, al
je 0x4816ed
mov dword [ebp - 8], 0x20000000
jmp 0x48182e
push 5
push edi
push 0x4b07ec
call fcn.00439124
add esp, 0xc
test al, al
je 0x48170d
mov dword [ebp - 8], 0x80000000
jmp 0x48182e
push 8
push edi
push 0x4b18e0
call fcn.00439124
add esp, 0xc
test al, al
je 0x48172a
or byte [ebp - 2], 0x80
jmp 0x48182e
push 6
push edi
push 0x4b18d8
call fcn.00439124
add esp, 0xc
test al, al
je 0x481747
or byte [ebp - 2], 0x20
jmp 0x48182e
push 7
push edi
push 0x4b18d0
call fcn.00439124
add esp, 0xc
test al, al
je 0x481764
or byte [ebp - 2], 0x40
jmp 0x48182e
push 7
push edi
push 0x4aee6c
call fcn.00439124
add esp, 0xc
test al, al
je 0x481781
or byte [ebp - 2], 0x10
jmp 0x48182e
push 4
push edi
push 0x4af11c
call fcn.00439124
add esp, 0xc
test al, al
je 0x48179e
or byte [ebp - 2], 8
jmp 0x48182e
push 3
push edi
push 0x4aee50
call fcn.00439124
add esp, 0xc
test al, al
je 0x4817b8
or byte [ebp - 1], 2
jmp 0x48182e
push 2
push edi
push 0x4b18cc
call fcn.00439124
add esp, 0xc
test al, al
je 0x4817d7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
jmp 0x48182e
push 3
push edi
push 0x4b18c8
call fcn.0043917b
add esp, 0xc
test al, al
je 0x481811
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
add edi, 6
push eax
mov dword [ebp + 8], edi
call fcn.0046fb37
test eax, eax
pop ecx
pop ecx
jle 0x48182e
mov eax, dword [ebp - 0x34]
jmp 0x4817d2
push 6
push edi
push 0x4b18c0
call fcn.0043917b
add esp, 0xc
test al, al
je 0x48182e
add edi, 0xc
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
call fcn.00405172
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
je 0x48184a
and word [eax], 0
inc eax
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00437e65
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
pop ecx
je 0x4816ad
push dword [ebp - 0x10]
mov word [esi], bx
mov ebx, dword [ebp - 4]
or ebx, dword [ebp - 8]
lea ecx, [ebp - 0x40]
call fcn.0043ff76
mov esi, 0x4a69d4
push esi
lea ecx, [ebp - 0xc]
call fcn.00446497
push esi
lea ecx, [ebp - 4]
call fcn.00446497
push esi
lea ecx, [ebp - 8]
call fcn.00446497
push esi
lea ecx, [ebp - 0x34]
call fcn.00446497
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp word [edi], 0x2a
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov byte [ebp + 0x13], al
jne 0x4818d1
inc edi
lea eax, [ebp + 8]
inc edi
push eax
mov byte [ebp + 0x13], 1
mov dword [ebp + 8], edi
call fcn.00437e65
pop ecx
push 0x2c
pop esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004408ab
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.00402d33
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x4819c4
push 2
pop edi
add dword [ebp + 8], edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044edb8
push eax
call fcn.0045079e
mov eax, dword [ebp + 8]
add esp, 0x14
cmp word [eax], si
jne 0x4819c4
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044edb8
push 0
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00440967
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x4819c4
add dword [ebp + 8], edi
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044099b
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x4819c4
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044edb8
push 0
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.004408ab
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x4819c4
add dword [ebp + 8], edi
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044edb8
push dword [eax]
call fcn.004495e2
pop ecx
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x13], 0
je 0x4819cf
mov eax, dword [ebp - 0x10]
jmp 0x4819d8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x150]
push dword [ebp - 0x14]
movzx ecx, word [ebp - 0x18]
push dword [ebp - 0x1c]
or ecx, ebx
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0048107c
lea ecx, [ebp - 0x34]
call fcn.00437e1a
lea ecx, [ebp - 8]
call fcn.00437e1a
lea ecx, [ebp - 4]
call fcn.00437e1a
lea ecx, [ebp - 0xc]
call fcn.00437e1a
lea ecx, [ebp - 0x40]
call fcn.00437e1a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc