Function at 0x45a905
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 0x20]
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x24]
push dword [ebp + 0x28]
push dword [eax]
push dword [ebp + 8]
push 2
call fcn.00422fec
push dword [ebp + 0x2c]
lea ecx, [esi + 0x40]
mov dword [esi], 0x47fff8
call fcn.004346b2
mov ebx, dword [ebp + 0x30]
and dword [esi + 0x4c], 0
lea edi, [esi + 0x48]
and dword [edi], 0
push 0x49062c
mov dword [esi + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x20]
add edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov eax, dword [eax + 0x2c]
shl eax, 2
not eax
and eax, 0x10000
xor ecx, ecx
test bl, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], ecx
jne 0x45a9a6
mov dword [ebp + 0x20], 0x10000000
mov eax, dword [esi + 0x40]
cmp word [eax], cx
mov dword [ebp + 0x1c], ecx
je 0x45a9c0
push ecx
push ecx
push edi
push eax
call fcn.0043e97f
add esp, 0x10
mov dword [ebp + 0x1c], eax
test bl, 4
je 0x45a9c9
or byte [ebp + 0x21], 0x20
test ebx, 0x20000000
je 0x45a9d7
or byte [ebp + 0x21], 2
jmp 0x45a9e5
test ebx, ebx
jns 0x45a9e1
or byte [ebp + 0x21], 1
jmp 0x45a9e5
or byte [ebp + 0x21], 3
mov eax, ebx
cdq
push edx
push eax
call fcn.0042642f
neg al
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp + 0xb], al
jne 0x45aa00
or byte [ebp + 0x23], 8
push 0x50
call fcn.004669a8
test eax, eax
pop ecx
je 0x45aa1b
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call fcn.00460fdc
mov edi, eax
jmp 0x45aa1d
xor edi, edi
cmp dword [ebp + 0x1c], 0
mov dword [esi + 0x1c], edi
je 0x45aa36
or dword [ebp + 0x20], 0x40
test ebx, 0x800000
je 0x45aa36
or byte [ebp + 0x21], 4
test ebx, 0x200000
je 0x45aa46
or byte [edi + 0x38], 1
or dword [ebp + 0x20], 0xb
test ebx, 0x400000
je 0x45aa56
or byte [edi + 0x38], 2
or dword [ebp + 0x20], 0xb
test ebx, 0x100000
je 0x45aa62
or byte [edi + 0x38], 4
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.004346b2
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 0x18]
shr ebx, 0x13
and ebx, 1
or ebx, dword [ebp + 0x20]
lea ecx, [ebp - 0x10]
or ebx, dword [ebp + 0x14]
push ecx
or ebx, 0x40000000
push ebx
push dword [eax]
mov ecx, edi
call fcn.00461091
lea ecx, [ebp + 0x24]
call fcn.0042602e
test byte [ebp + 0x20], 0xb
jne 0x45aabd
cmp dword [ebp + 0x1c], 0
je 0x45aabd
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x45aabd
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x18]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
call fcn.0042a75e
test eax, eax
je 0x45aad8
mov ebx, eax
cmp dword [ebp + 0x34], 0
je 0x45aafa
push dword [ebp + 0x34]
lea ecx, [ebp + 0x18]
push ecx
push eax
mov dword [ebp + 0x18], 0x80000000
call fcn.0045832e
mov ebx, eax
add esp, 0xc
mov dword [edi + 0x34], ebx
test ebx, ebx
je 0x45ab08
push 1
push ebx
mov ecx, edi
call fcn.00428e45
mov ecx, esi
call fcn.00422f5e
cmp dword [ebp + 0x1c], 0
je 0x45ab1f
push dword [ebp + 0x1c]
mov ecx, edi
call fcn.00461080
movzx eax, byte [ebp + 0xb]
push eax
mov ecx, esi
call fcn.00422ea2
mov eax, dword [ebp + 0x20]
shr eax, 0x1c
and eax, 1
push eax
mov ecx, esi
call fcn.00422efd
push 0x49062c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x30