Function at 0x46e6af
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0x20]
mov esi, dword [ebp + 8]
push dword [ebp + 0x1c]
xor edi, edi
push dword [ebp + 0x18]
inc edi
push dword [ebp + 0x14]
mov ebx, ecx
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x28]
push dword [eax]
push esi
push edi
call fcn.0042d432
mov eax, dword [ebp + 0x38]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x34]
push 0x4b069c
mov dword [ebx], 0x4a1214
mov dword [ebx + 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x34]
shr eax, 4
and eax, 0x20000
test byte [ebp + 0x36], 0x40
mov dword [ebp + 0x18], eax
je 0x46e720
mov dword [ebp + 0x18], edi
mov esi, dword [ebp + 0x2c]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
lea edx, [ebx + 0x40]
mov edi, edx
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 esi, dword [ebx + 0x28]
add esi, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
xor edi, edi
cmp dword [ebp + 0x30], 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp + 0x20], edi
je 0x46e75a
mov dword [ebp + 0x20], 0x10000000
mov ecx, dword [ebp + 0x34]
test ecx, 0x4000000
je 0x46e769
or byte [ebp + 0x22], 0x80
test ecx, 0x10000000
je 0x46e775
or byte [ebp + 0x22], 0x20
test ecx, 0x8000000
je 0x46e781
or byte [ebp + 0x22], 0x10
xor esi, esi
test cl, 0x40
jne 0x46e7a7
cmp dword [edx], edi
jge 0x46e7a3
cmp dword [ebx + 0x44], edi
jge 0x46e7a3
cmp dword [ebx + 0x48], edi
jge 0x46e7a3
cmp dword [ebx + 0x4c], edi
jge 0x46e7a3
mov eax, dword [ebx + 0x14]
cmp word [eax], di
je 0x46e7a7
or byte [ebp + 0x21], 1
mov eax, dword [ebx + 0x14]
xor edx, edx
mov dx, word [eax]
cmp dx, 0x2a
mov dword [ebp + 0x34], edx
jne 0x46e7c7
mov dx, word [eax + 2]
neg dx
sbb edx, edx
and edx, 0x20
mov word [eax], dx
cmp dword [ebx + 0x44], edi
jge 0x46e7d6
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp word [eax], di
je 0x46e7d9
xor esi, esi
inc esi
test ecx, 0x40000000
je 0x46e7e6
xor esi, esi
inc esi
jmp 0x46e7fd
test ecx, 0x20000000
je 0x46e7f3
push 2
pop esi
jmp 0x46e7fd
test ecx, ecx
jns 0x46e7f9
xor esi, esi
cmp esi, edi
jle 0x46e800
or dword [ebp + 0x20], esi
test cl, 0x20
je 0x46e809
or byte [ebp + 0x21], 2
push 0x8c
mov esi, ecx
call fcn.00483528
and esi, 0x2000000
pop ecx
je 0x46e82f
cmp eax, edi
je 0x46e840
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.00482596
jmp 0x46e842
cmp eax, edi
je 0x46e840
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.00481df6
jmp 0x46e842
xor eax, eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
push dword [ecx + 0x18]
sub esp, 0x10
cmp esi, edi
lea esi, [ebp - 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]
je 0x46e878
mov esi, dword [ebp + 0x20]
mov ecx, esi
or ecx, 0x40000000
push ecx
push 0x497994
mov ecx, eax
call fcn.00481f87
jmp 0x46e894
mov ecx, dword [ebp + 0x20]
or ecx, 0x40000000
push ecx
push 0x497994
push dword [ebp + 0x18]
mov ecx, eax
call fcn.00481f2e
mov esi, dword [ebp + 0x20]
mov eax, dword [ebx + 0x14]
cmp word [eax], 0
je 0x46e8ab
cmp word [ebp + 0x34], 0x2a
je 0x46e8ab
mov eax, dword [ebx + 0x1c]
mov byte [eax + 0x49], 1
mov ecx, dword [ebx + 0x1c]
lea eax, [ebx + 0x40]
push eax
call fcn.00481e78
mov ecx, dword [ebp + 0x1c]
call fcn.00477526
cmp dword [ebp + 0x30], 0
mov edi, eax
jl 0x46e8e8
push 0
lea eax, [ebp + 0x30]
push eax
push edi
call fcn.0046e66f
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + 0x40], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x40]
add esp, 0xc
test eax, eax
je 0x46e8e8
mov edi, eax
mov ecx, dword [ebx + 0x1c]
push 0
push edi
call fcn.0043583f
push dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, ebx
call fcn.0042d3a3
push 1
mov ecx, ebx
call fcn.0042d2b3
mov eax, dword [ebx + 0x1c]
push 1
push dword [eax + 0x18]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
and esi, 0x10000000
push esi
mov ecx, ebx
call fcn.0042d30e
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x34