Function at 0x4240fa
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x20]
mov ebx, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x28]
push dword [eax]
push esi
push 3
call fcn.00422fec
mov eax, dword [ebp + 0x2c]
or dword [ebx + 0x44], 0xffffffff
and dword [ebx + 0x48], 0
push 0x49062c
mov dword [ebx], 0x47e4bc
mov dword [ebx + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov edi, dword [esi + 0x28]
mov esi, dword [edi + 0x2c]
add edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x40]
shr eax, 0x17
and al, 1
mov byte [ebp + 0x23], al
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x2c]
mov eax, ecx
shr eax, 0xc
shl esi, 2
and eax, 0x200
not esi
mov dword [ebp + 0x10], eax
and esi, 0x10000
test cl, 0x10
mov eax, 0x40000000
mov dword [ebp + 8], edi
mov dword [ebp - 8], edx
mov dword [ebp + 0x1c], eax
jne 0x4241aa
mov dword [ebp + 0x1c], 0x50000000
test ecx, 0x4000000
jne 0x4241b6
or byte [ebp + 0x1e], 0x80
test ecx, 0x10000000
je 0x4241c2
or byte [ebp + 0x1e], 0x20
test ecx, 0x8000000
je 0x4241ce
or byte [ebp + 0x1e], 0x10
test eax, ecx
je 0x4241d8
or dword [ebp + 0x1c], 1
jmp 0x4241e4
test ecx, 0x20000000
je 0x4241e4
or dword [ebp + 0x1c], 2
test cl, 0x20
je 0x4241f5
and byte [ebp + 0x1e], 0xef
or ecx, 4
mov dword [ebp + 0x2c], ecx
jmp 0x4241f9
or byte [ebp + 0x1c], 0x80
test cl, 8
je 0x424202
or byte [ebp + 0x1d], 8
mov eax, dword [ebx + 0x10]
push 0xa
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x424216
or dword [ebp + 0x2c], 4
test byte [ebp + 0x2c], 1
je 0x424220
or dword [ebp + 0x1c], 0x20
test byte [ebp + 0x1c], 0x20
je 0x42422a
and dword [ebp + 0x2c], 0xfffffffb
mov eax, dword [ebp + 0x2c]
and eax, 4
mov dword [ebp - 0x18], eax
je 0x424239
or dword [ebp + 0x1c], 4
test byte [ebp + 0x2d], 0x80
je 0x424243
or byte [ebp + 0x1f], 8
or esi, 0x40001000
or dword [ebp + 0x1c], esi
test byte [ebp + 0x2d], 4
je 0x424256
or byte [ebp + 0x1d], 0x20
mov eax, dword [ebp + 0x2c]
and eax, 0x2000000
mov dword [ebp - 0x14], eax
je 0x424267
or dword [ebp + 0x1c], 4
cmp byte [ebp + 0x23], 0
je 0x4242a2
call fcn.00423570
push 0x64
call fcn.004669a8
test eax, eax
pop ecx
je 0x42428c
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.004654a7
jmp 0x42428e
xor eax, eax
mov ecx, dword [ebp + 0x28]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx]
cmp word [ecx], 0
setne cl
mov byte [eax + 0x2c], cl
jmp 0x4242d6
push 0x5c
call fcn.004669a8
test eax, eax
pop ecx
je 0x4242bc
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.00462110
jmp 0x4242be
xor eax, eax
mov ecx, dword [ebp + 0x28]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx]
cmp word [ecx], 0
setne cl
xor cl, byte [eax + 0x2c]
and cl, 1
xor byte [eax + 0x2c], cl
test byte [ebx + 0x42], 0x40
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x18], eax
je 0x4242e6
or byte [eax + 0x2c], 2
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x1c]
push dword [edi + 0x18]
lea esi, [ebp - 0x10]
sub esp, 0x10
cmp byte [ebp + 0x23], 0
mov edi, esp
push dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x24], ecx
movsd dword es:[edi], dword [esi]
je 0x42430e
call fcn.00465731
jmp 0x424318
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
cmp byte [ebp + 0x23], 0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x18]
mov dword [ebp + 0xc], eax
je 0x42433a
push 0xffffffffffffffff
xor esi, esi
push esi
push 0x435
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42434c
push 0
push 0xffffffffffffffff
push 0xc5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x28], esi
call fcn.0042a75e
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x424361
mov dword [ebp + 0x28], eax
or dword [ebp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x34]
mov di, word [eax]
cmp di, 0x2a
jne 0x424374
mov word [eax], si
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.0042dab0
mov eax, dword [ebp + 0x34]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x424391
inc eax
inc eax
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x14], esi
jg 0x4243a0
cmp word [eax], si
jne 0x4243a0
cmp di, si
je 0x4243b3
push eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0045832e
add esp, 0xc
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x28], esi
je 0x4243c5
mov ecx, dword [ebp + 0x18]
push 1
push dword [ebp + 0x28]
call fcn.00428e45
test byte [ebp + 0x2c], 1
je 0x4243dc
push esi
push 0x2a
push 0xcc
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp + 0x23], 0
je 0x42443e
mov edi, dword [ebp + 0x30]
mov eax, dword [edi + 4]
cmp eax, esi
jl 0x4243ff
push eax
mov eax, dword [ebp + 0x24]
push esi
push 0x443
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi]
cmp edx, esi
jl 0x424449
push 0x15
pop ecx
xor eax, eax
mov dword [ebp - 0x84], 0x5c
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp + 0x24]
push esi
push 0x444
push dword [eax + 0x18]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x80], 0x40000000
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x424449
push dword [ebp + 0x30]
mov ecx, dword [ebp + 0x18]
call fcn.00462306
push dword [ebx + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x14], esi
je 0x4244f3
lea eax, [ebp - 0x10]
push eax
push esi
push 0xb2
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x28]
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, 0x47e4cc
je 0x424495
mov edi, dword [ebx + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push 0x400
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x2c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
test byte [ebp + 0x2e], 0x20
je 0x4244d5
dec eax
dec eax
mov dword [ebp - 0xc], eax
add eax, ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xb4
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push esi
push 0xb1
push dword [ebp + 0xc]
call edi
mov eax, dword [ebx + 8]
cmp word [eax], si
je 0x424519
push dword [ebx + 0x10]
mov ecx, dword [ebx + 0x30]
push eax
call fcn.004333d9
test byte [ebp + 0x2d], 1
mov byte [ebp + 0x2b], 0
je 0x424527
mov byte [ebp + 0x2b], 0x10
test byte [ebp + 0x2d], 2
je 0x424531
mov byte [ebp + 0x2b], 0x20
push 1
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov cl, byte [ebp + 0x2b]
mov eax, dword [ebp + 0x18]
or byte [eax + 0x2d], cl
xor eax, eax
cmp word [ebx + 0x40], si
mov ecx, ebx
setge al
push eax
call fcn.00422ea2
mov eax, dword [ebp + 0x1c]
and eax, 0x10000000
push eax
mov ecx, ebx
call fcn.00422efd
test byte [ebx + 0x40], 0x40
je 0x424579
push esi
push 7
push 0x115
push dword [ebp + 0xc]
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp + 0xc]
call edi
push 0x49062c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x30