Function at 0x1008e6fb
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x24]
push dword [ebp + 0x28]
push dword [eax]
push edi
push 2
call fcn.1003a4c7
push dword [ebp + 0x2c]
lea ecx, [ebx + 0x44]
mov dword [ebx], 0x100cf508
call fcn.1005023c
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x48], eax
xor eax, eax
lea esi, [ebx + 0x4c]
push 0x100e3d7c
mov dword [esi], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x28]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
and dword [ebx + 0x40], 0
and dword [ebp + 8], 0
mov dword [ebp + 0x24], 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 - 0x14], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0xc], eax
mov eax, 0x500000
and ecx, eax
cmp ecx, eax
mov byte [ebx + 0x54], 0
mov dword [ebp - 0x10], edx
jne 0x1008e7a7
and byte [ebp + 0x32], 0xef
mov eax, dword [ebp + 0x30]
mov dword [ebp + 8], 3
mov dword [ebx + 0x48], eax
test byte [ebp + 0x33], 2
je 0x1008e7b1
mov byte [ebx + 0x54], 1
xor edi, edi
cmp dword [ebp + 0x38], edi
je 0x1008e7bc
mov byte [ebx + 0x54], 2
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 0x8c]
shl eax, 2
not eax
and eax, 0x10000
test byte [ebp + 0x30], 0x10
mov dword [ebp - 4], eax
mov dword [ebp + 0x1c], edi
jne 0x1008e7e2
mov dword [ebp + 0x1c], 0x10000000
mov al, byte [ebx + 0x54]
neg al
mov dword [ebp + 0x18], edi
sbb eax, eax
and eax, 0xffffffc1
add eax, 0x40
mov dword [ebp + 0x28], eax
mov eax, dword [ebx + 0x44]
cmp word [eax], di
je 0x1008e841
push dword [ebp + 0x40]
lea ecx, [ebp + 0x28]
push edi
push ecx
push edi
push edi
push esi
push eax
call fcn.10080290
add esp, 0x1c
cmp byte [ebx + 0x54], 0
mov dword [ebp + 0x18], eax
mov dword [ebx + 0x40], eax
jne 0x1008e833
cmp dword [ebp + 0x28], 1
je 0x1008e833
cmp dword [ebp + 0x28], edi
jne 0x1008e83c
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x40], eax
mov dword [ebp + 0x18], edi
jmp 0x1008e841
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x58], eax
mov dword [ebp + 0x18], edi
cmp dword [ebp + 0x18], edi
jne 0x1008e87c
cmp dword [ebx + 0x58], edi
jne 0x1008e896
cmp dword [ebx + 0x5c], edi
jne 0x1008e87c
mov eax, dword [ebx + 0x44]
mov cx, word [eax]
cmp cx, di
je 0x1008e87c
cmp cx, 0x23
jne 0x1008e869
push edi
push edi
push edi
push edi
push eax
push dword [0x100e2fc0]
jmp 0x1008e870
push 0x10
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x58], edi
jne 0x1008e896
cmp dword [ebp + 0x18], edi
jne 0x1008e88b
cmp dword [ebx + 0x5c], edi
je 0x1008e891
cmp byte [ebx + 0x54], 0
je 0x1008e896
mov dword [ebp + 0x10], edi
jmp 0x1008e89d
mov dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x30]
cdq
push edx
push eax
call fcn.1003fe73
neg al
sbb al, al
inc al
cmp byte [ebx + 0x54], 0
pop ecx
pop ecx
mov byte [ebp + 0x23], al
je 0x1008e8e0
push 0x9c
call fcn.100b4338
cmp eax, edi
pop ecx
je 0x1008e8d5
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.100b0ea4
jmp 0x1008e8d7
xor eax, eax
cmp byte [ebx + 0x54], 0
mov dword [ebx + 0x1c], eax
jne 0x1008e901
push 0xb0
call fcn.100b4338
cmp eax, edi
pop ecx
je 0x1008e8fc
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.100a6530
jmp 0x1008e8fe
xor eax, eax
mov dword [ebx + 0x1c], eax
cmp byte [ebx + 0x54], 1
mov esi, dword [ebx + 0x1c]
mov dword [ebp + 0x14], esi
jne 0x1008e9d5
mov ecx, dword [ebp + 0x30]
test cl, 4
je 0x1008e922
or byte [esi + 0x8d], 4
jmp 0x1008e926
or byte [ebp + 0x1d], 2
test ecx, 0x20000000
je 0x1008e934
or dword [ebp + 0x1c], 2
jmp 0x1008e93c
test ecx, ecx
js 0x1008e93c
or dword [ebp + 0x1c], 1
mov eax, dword [ebx + 0x58]
cmp eax, edi
je 0x1008e94d
or dword [ebp + 0x1c], 3
mov dword [esi + 0x94], eax
cmp dword [ebx + 0x58], edi
jne 0x1008e95c
cmp dword [ebp + 0x18], edi
jne 0x1008e95c
cmp dword [ebx + 0x5c], edi
je 0x1008e96b
test ecx, 0x800000
je 0x1008e96b
or byte [esi + 0x8d], 8
cmp byte [ebp + 0x23], 0
jne 0x1008e978
or byte [esi + 0x8d], 0x40
mov eax, dword [ebp + 0x14]
or word [ebp + 0x1c], 0x101
mov byte [eax + 0x8c], 1
mov byte [eax + 0x70], 0
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp + 0x2c]
mov dword [ebx + 4], 0x10002
call fcn.1005023c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
push dword [ecx + 0x18]
mov ecx, dword [ebp + 0x1c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or ecx, 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
push dword [eax]
mov ecx, dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
call fcn.100b044b
lea ecx, [ebp + 0x2c]
call fcn.1003f96c
mov esi, dword [ebp + 0x14]
xor edi, edi
cmp byte [ebx + 0x54], 2
jne 0x1008eab3
mov ecx, dword [ebp + 0x30]
test cl, 4
je 0x1008e9f0
or byte [esi + 0x8d], 4
jmp 0x1008e9f4
or byte [ebp + 0x1d], 2
test ecx, 0x20000000
je 0x1008ea02
or dword [ebp + 0x1c], 2
jmp 0x1008ea0a
test ecx, ecx
js 0x1008ea0a
or dword [ebp + 0x1c], 1
mov eax, dword [ebx + 0x58]
cmp eax, edi
je 0x1008ea1b
or dword [ebp + 0x1c], 3
mov dword [esi + 0x94], eax
cmp dword [ebx + 0x58], edi
jne 0x1008ea2a
cmp dword [ebp + 0x18], edi
jne 0x1008ea2a
cmp dword [ebx + 0x5c], edi
je 0x1008ea39
test ecx, 0x800000
je 0x1008ea39
or byte [esi + 0x8d], 8
cmp byte [ebp + 0x23], 0
jne 0x1008ea46
or byte [esi + 0x8d], 0x40
mov eax, dword [ebp + 0x14]
or dword [ebp + 0x1c], 1
mov byte [eax + 0x8c], 2
mov byte [eax + 0x70], 0
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp + 0x2c]
mov dword [ebx + 4], 0x10002
call fcn.1005023c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
push dword [ecx + 0x18]
mov ecx, dword [ebp + 0x1c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or ecx, 0x40000000
push ecx
push dword [eax]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.100b044b
lea ecx, [ebp + 0x2c]
call fcn.1003f96c
push dword [esi + 0x18]
push 1
push 0x44d
push dword [ebp + 0x38]
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp byte [ebx + 0x54], 0
jne 0x1008ec14
cmp byte [ebp + 0x23], 0
jne 0x1008eac7
or byte [ebp + 0x1f], 8
mov edx, dword [ebp + 0x30]
test dl, 4
je 0x1008ead3
or byte [ebp + 0x1d], 0x20
test edx, 0x20000000
je 0x1008eae1
or byte [ebp + 0x1d], 2
jmp 0x1008eaef
test edx, edx
jns 0x1008eaeb
or byte [ebp + 0x1d], 1
jmp 0x1008eaef
or byte [ebp + 0x1d], 3
cmp dword [ebp + 0x10], edi
je 0x1008eb04
or dword [ebp + 0x1c], 0x40
test edx, 0x800000
je 0x1008eb04
or byte [ebp + 0x1d], 4
mov edi, edx
shr edi, 0x13
mov dword [ebp + 0x14], edi
and edi, 1
test edx, 0x200000
je 0x1008eb24
or byte [esi + 0x98], 1
xor edi, edi
or dword [ebp + 0x1c], 0xb
test edx, 0x400000
je 0x1008eb49
or dword [ebp + 0x1c], 0xb
lea ecx, [esi + 0x98]
mov al, byte [ecx]
and al, 0xfb
xor edi, edi
or al, 2
cmp dword [ebp + 8], edi
mov byte [ecx], al
je 0x1008eb49
or al, 4
mov byte [ecx], al
test edx, 0x100000
je 0x1008eb58
or byte [esi + 0x98], 8
cmp dword [ebp + 0x3c], 0
je 0x1008eb7c
push dword [ebp + 0x3c]
mov ecx, esi
call fcn.100b028b
cmp word [esi + 0x6e], 0
jl 0x1008eb7c
test byte [esi + 0x98], 6
ja 0x1008eb7c
mov byte [esi + 0x78], 0xf0
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp + 0x38]
call fcn.1005023c
or edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
or edi, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
or edi, 0x40000000
push dword [ecx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push edi
push dword [eax]
mov ecx, esi
call fcn.100a6e13
lea ecx, [ebp + 0x38]
call fcn.1003f96c
lea ecx, [ebp + 0x3c]
call fcn.10046123
lea eax, [ebp + 0x3c]
push eax
push dword [esi + 0x18]
call fcn.1009fcf4
test byte [ebp + 0x1c], 0xb
pop ecx
pop ecx
jne 0x1008ebe6
mov eax, dword [esi + 0xac]
test eax, eax
je 0x1008ebe6
push 5
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [ebp + 0x14]
and al, 1
test byte [ebp + 0x32], 0x60
je 0x1008ebf3
or al, 2
movzx eax, al
push 2
push eax
mov eax, dword [ebp + 0x24]
push 0x45c
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0x3c]
call fcn.1003f96c
jmp 0x1008ec36
cmp dword [ebp + 0x3c], edi
je 0x1008ec36
push dword [ebp + 0x3c]
mov ecx, esi
call fcn.100b028b
cmp word [esi + 0x6e], di
jl 0x1008ec36
test byte [esi + 0x98], 6
ja 0x1008ec36
mov byte [esi + 0x78], 0xf0
push 1
push dword [esi + 0x18]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov ecx, dword [ebp + 0x24]
xor edi, edi
call fcn.1009fde3
test eax, eax
je 0x1008ec51
mov edi, eax
cmp dword [ebp + 0x34], 0
je 0x1008ec75
push dword [ebp + 0x34]
fld qword [0x100d2130]
lea ecx, [ebp - 8]
fstp qword [ebp - 8]
push ecx
push eax
call fcn.1008a313
mov edi, eax
add esp, 0xc
mov dword [esi + 0x48], edi
test edi, edi
je 0x1008ec89
push 1
mov dword [esi + 0x4c], edi
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x84]
mov ecx, ebx
call fcn.1003a3f2
mov eax, dword [ebx + 0x58]
xor edi, edi
cmp eax, edi
je 0x1008ecb1
cmp byte [ebx + 0x54], 0
mov ecx, esi
push eax
jne 0x1008eca9
call fcn.100a668b
jmp 0x1008ecae
call fcn.1003fc43
mov dword [ebx + 0x58], edi
mov eax, dword [ebx + 0x5c]
cmp eax, edi
je 0x1008ecd6
cmp byte [ebx + 0x54], 0
jne 0x1008ecd6
push eax
mov ecx, esi
call fcn.100a668b
mov eax, dword [esi + 0xac]
mov byte [eax + 0x94], 0
mov dword [ebx + 0x5c], edi
cmp dword [ebp + 0x18], edi
je 0x1008ecf8
cmp byte [ebx + 0x54], 0
jne 0x1008ecf8
push dword [ebp + 0x18]
mov ecx, esi
call fcn.100a668b
mov eax, dword [esi + 0xac]
mov byte [eax + 0x94], 0x40
movzx eax, byte [ebp + 0x23]
push eax
mov ecx, ebx
call fcn.1003a2f5
mov eax, dword [ebp + 0x1c]
shr eax, 0x1c
and eax, 1
push eax
mov ecx, ebx
call fcn.1003a350
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x3c