Function at 0x422635
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
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.0042158e
mov eax, dword [ebp + 0x2c]
or dword [ebx + 0x44], 0xffffffff
and dword [ebx + 0x48], 0
push 0x48b5d4
mov dword [ebx], 0x47910c
mov dword [ebx + 0x40], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x28]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x20]
add edx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x40]
shr eax, 0x17
and al, 1
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x2c]
test cl, 0x10
mov byte [ebp + 0x23], al
mov eax, 0x40000000
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x1c], eax
jne 0x4226ca
mov dword [ebp + 0x1c], 0x50000000
test ecx, 0x4000000
jne 0x4226d6
or byte [ebp + 0x1e], 0x80
test ecx, 0x10000000
je 0x4226e2
or byte [ebp + 0x1e], 0x20
mov edi, 0x8000000
test edi, ecx
je 0x4226ef
or byte [ebp + 0x1e], 0x10
test eax, ecx
je 0x4226f9
or dword [ebp + 0x1c], 1
jmp 0x422705
test ecx, 0x20000000
je 0x422705
or dword [ebp + 0x1c], 2
test cl, 0x20
push 4
pop esi
je 0x422718
and byte [ebp + 0x1e], 0xef
or ecx, esi
mov dword [ebp + 0x2c], ecx
jmp 0x42271c
or byte [ebp + 0x1c], 0x80
test cl, 8
je 0x422725
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 0x422738
or dword [ebp + 0x2c], esi
test byte [ebp + 0x2c], 1
je 0x422742
or dword [ebp + 0x1c], 0x20
test byte [ebp + 0x1c], 0x20
je 0x42274c
and dword [ebp + 0x2c], 0xfffffffb
mov eax, dword [ebp + 0x2c]
and eax, esi
mov dword [ebp - 4], eax
je 0x422759
or dword [ebp + 0x1c], esi
test byte [ebp + 0x2d], 0x80
je 0x422762
or dword [ebp + 0x1c], edi
or dword [ebp + 0x1c], 0x40011000
test byte [ebp + 0x2d], 4
je 0x422773
or byte [ebp + 0x1d], 0x20
mov eax, dword [ebp + 0x2c]
and eax, 0x2000000
mov dword [ebp + 8], eax
je 0x422783
or dword [ebp + 0x1c], esi
cmp byte [ebp + 0x23], 0
je 0x4227be
call fcn.004217f0
push 0x64
call fcn.00461a38
test eax, eax
pop ecx
je 0x4227a8
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.004605c3
jmp 0x4227aa
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 0x4227f2
push 0x5c
call fcn.00461a38
test eax, eax
pop ecx
je 0x4227d8
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.0045d0c6
jmp 0x4227da
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 0x422802
or byte [eax + 0x2c], 2
cmp byte [ebp + 0x23], 0
mov ecx, dword [ebx + 0x1c]
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
lea esi, [ebp - 0x14]
je 0x42282d
mov eax, dword [ebp + 0x14]
push dword [eax + 0x18]
sub esp, 0x10
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]
movsd dword es:[edi], dword [esi]
call fcn.0046084d
jmp 0x422846
mov ecx, dword [ebp + 0x14]
push dword [ecx + 0x18]
mov edx, dword [eax]
sub esp, 0x10
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 ecx, eax
movsd dword es:[edi], dword [esi]
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 0x422868
push 0xffffffffffffffff
xor esi, esi
push esi
push 0x435
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42287a
push 0
push 0xffffffffffffffff
push 0xc5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x28], esi
call fcn.00429b90
cmp eax, esi
mov dword [ebp + 0x14], eax
je 0x42288f
mov dword [ebp + 0x28], eax
or dword [ebp + 0x24], 0xffffffff
mov eax, dword [ebp + 0x34]
mov di, word [eax]
cmp di, 0x2a
jne 0x4228a2
mov word [eax], si
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.0042e410
mov eax, dword [ebp + 0x34]
cmp word [eax], 0x3a
pop ecx
pop ecx
jne 0x4228bf
inc eax
inc eax
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x24], esi
jg 0x4228ce
cmp word [eax], si
jne 0x4228ce
cmp di, si
je 0x4228e1
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x14]
call fcn.00451254
add esp, 0xc
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x28], esi
je 0x4228f3
mov ecx, dword [ebp + 0x18]
push 1
push dword [ebp + 0x28]
call fcn.00427d35
test byte [ebp + 0x2c], 1
je 0x42290a
push esi
push 0x2a
push 0xcc
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp + 0x23], 0
je 0x422966
mov edi, dword [ebp + 0x30]
mov eax, dword [edi + 4]
cmp eax, esi
jl 0x42292d
push eax
mov eax, dword [ebp + 0x10]
push esi
push 0x443
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi]
cmp edx, esi
jl 0x422971
push 0x15
pop ecx
xor eax, eax
mov dword [ebp - 0x80], 0x5c
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x10]
push esi
push 0x444
push dword [eax + 0x18]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x7c], 0x40000000
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x422971
push dword [ebp + 0x30]
mov ecx, dword [ebp + 0x18]
call fcn.0045d131
push dword [ebx + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp + 8], esi
je 0x422a13
lea eax, [ebp - 0x14]
push eax
push esi
push 0xb2
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 4], 0
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x24]
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, 0x47911c
je 0x4229bd
mov edi, dword [ebx + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push 0x400
mov esi, eax
lea eax, [ebp - 0x24]
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 - 0x18]
sub ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x2c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
add eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xb3
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 0x422a39
push dword [ebx + 0x10]
mov ecx, dword [ebx + 0x30]
push eax
call fcn.00428e6b
test byte [ebp + 0x2d], 1
mov byte [ebp + 0x2b], 0
je 0x422a47
mov byte [ebp + 0x2b], 0x10
test byte [ebp + 0x2d], 2
je 0x422a51
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.00421443
mov eax, dword [ebp + 0x1c]
and eax, 0x10000000
push eax
mov ecx, ebx
call fcn.0042149e
test byte [ebx + 0x40], 0x40
je 0x422a99
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 0x48b5d4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x30