Function at 0x4877a7
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x2c]
push ebx
push esi
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x1c]
mov esi, 0x4c6a64
push dword [ebp + 0x18]
mov ebx, ecx
push dword [ebp + 0x14]
push esi
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
push 0x11
call fcn.0047f1ea
lea ecx, [ebx + 0x44]
mov dword [ebx], 0x4d255c
call fcn.0044658e
lea ecx, [ebx + 0x48]
call fcn.0044658e
lea ecx, [ebx + 0x4c]
call fcn.0044658e
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x28]
mov al, byte [ebp + 0x30]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov byte [ebx + 0x40], al
mov eax, dword [edi + 0x8c]
shl eax, 2
not eax
and eax, 0x10000
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
add edx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x20]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x2c], 0x64
call fcn.0043fe57
mov eax, dword [ebp + 0x20]
pop ecx
push 0x3a
pop esi
cmp word [eax], si
je 0x487875
mov dword [ebp + 0x14], eax
push esi
lea eax, [ebp + 0x20]
call fcn.00414c4e
mov eax, dword [ebp + 0x20]
cmp word [eax], si
pop ecx
jne 0x487890
and word [eax], 0
inc eax
inc eax
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00453e89
mov eax, dword [ebp + 0x20]
mov ax, word [eax]
pop ecx
pop ecx
call fcn.004460dd
test al, al
je 0x4878b2
add dword [ebp + 0x20], 2
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00453e89
mov eax, dword [ebp + 0x20]
mov ax, word [eax]
pop ecx
pop ecx
call fcn.004460dd
test al, al
je 0x4878d4
add dword [ebp + 0x20], 2
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00453e89
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
push esi
lea eax, [ebx + 0x48]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.004494ac
mov eax, dword [ebp + 0x20]
add esp, 0x14
cmp word [eax], si
jne 0x487917
add dword [ebp + 0x20], 2
push esi
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.004494ac
add esp, 0xc
mov eax, dword [ebp + 0x20]
cmp word [eax], si
jne 0x487934
add dword [ebp + 0x20], 2
push esi
lea eax, [ebx + 0x44]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.004494ac
add esp, 0xc
mov esi, dword [ebp + 0x14]
push 3
push edi
push esi
call fcn.0044d09d
mov ecx, eax
mov ax, word [esi]
add esp, 0xc
call fcn.00414dee
test al, al
je 0x487956
mov dword [ebp + 0x18], ecx
jmp 0x487967
test ecx, ecx
je 0x487974
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x487974
mov eax, dword [eax + 0x18]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0
je 0x487974
mov dword [ebp + 0x1c], 2
push 0x94
call fcn.004b4768
test eax, eax
pop ecx
je 0x487993
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.004afb4e
mov dword [ebp + 0x14], eax
jmp 0x48799a
and dword [ebp + 0x14], 0
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], eax
and dword [eax + 0x90], 0
mov eax, dword [ebp + 0x30]
cdq
push edx
push eax
call fcn.004402f5
neg al
pop ecx
sbb al, al
pop ecx
mov ecx, dword [ebp + 0x30]
inc al
test cl, 0x10
mov byte [ebp + 0x23], al
jne 0x4879c6
or byte [ebp + 0x1f], 0x10
test cl, 0x20
je 0x4879cf
or dword [ebp + 0x1c], 1
test cl, 0x40
je 0x4879d8
or dword [ebp + 0x1c], 0x40
cmp dword [ebp + 0x18], 0
jne 0x4879e6
test cl, cl
jns 0x4879e6
or dword [ebp + 0x1c], 0x12
test ecx, ecx
jns 0x4879f0
or dword [ebp + 0x1c], 8
jmp 0x4879fc
test ecx, 0x20000000
je 0x4879fc
or dword [ebp + 0x1c], 4
test al, al
jne 0x487a04
or byte [ebp + 0x1f], 8
or word [ebp + 0x1c], 0x120
push str.msctls_updown32
push dword [ebp + 0xc]
lea esi, [ebp - 0x18]
push dword [edi + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
mov eax, edi
or eax, dword [ebp - 4]
mov ecx, esi
or eax, 0x40000000
push eax
call fcn.004afbd7
mov ecx, dword [ebp - 8]
call fcn.004a023d
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
call dword [edx + 0x84]
cmp dword [ebp + 0x18], 0
je 0x487a5e
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0044025f
push dword [ebp + 0x2c]
mov eax, dword [esi]
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x98]
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
movzx eax, byte [ebp + 0x23]
push eax
mov ecx, ebx
call fcn.0043a6e9
and edi, 0x10000000
push edi
mov ecx, ebx
call fcn.0043a744
push 1
push dword [esi + 0x18]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov ecx, ebx
call fcn.0043a7e6
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x2c