Function at 0x4074c0
Capabilities:
Acquire debug privileges
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x576328
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d61f0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x5d61f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0042c616
push dword [ebx + 0xbc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0xbc]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
push 0x5acfb0
mov ecx, ebx
call fcn.00431bb3
mov ecx, ebx
call fcn.00407bc0
mov ecx, ebx
call fcn.00408390
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov ecx, dword [ebx + 0x168]
mov esi, dword [ebx + 0x164]
sub eax, ecx
cdq
push 0
push ecx
sub eax, edx
sar eax, 1
push esi
push eax
sub edi, esi
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov ecx, ebx
call fcn.00431b77
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CRgn.0
push 5
mov dword [esp + 0x44], 0
mov ecx, dword [ebx + 0x168]
mov eax, dword [ebx + 0x164]
push 5
inc ecx
push ecx
inc eax
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.0042d900
push 1
push dword [esp + 0x20]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowRgn]
lea eax, [esp + 0x14]
push eax
call fcn.0040a210
lea ecx, [ebx + 0x16c]
push eax
mov byte [esp + 0x44], 1
call fcn.00402530
mov byte [esp + 0x40], 0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40760c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x20]
lea ecx, [ebx + 0xc0]
call fcn.0040f070
push 1
lea ecx, [ebx + 0xc0]
call fcn.0040eba0
mov ecx, dword [ebx + 0x14c]
push 1
call fcn.004148a0
mov ecx, dword [ebx + 0x158]
push 1
call fcn.004148a0
mov ecx, dword [ebx + 0x148]
push 1
call fcn.004148a0
mov ecx, dword [ebx + 0x15c]
push 1
call fcn.004148a0
mov ecx, dword [ebx + 0x150]
push 1
call fcn.004148a0
mov ecx, dword [ebx + 0x154]
push 0
call fcn.004148a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4076d4
lea eax, [esp + 0x24]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4076ca
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.setting.ini
lea eax, [ebx + 0x16c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040de30
add esp, 0xc
mov byte [esp + 0x40], 2
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x160]
lea esi, [ebx + 0x160]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x407724
push 0x104
mov ecx, esi
call fcn.00402390
push dword [esp + 0x14]
push 0x104
push dword [esi]
push str.wallvideo_zcaz
push str.channel
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [esp + 0x40], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x407764
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x40776e
xor ecx, ecx
jmp 0x407780
push dword [eax - 8]
push eax
call fcn.0054a435
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4077e5
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4077e5
xor edx, edx
push edx
push edx
push ebx
push 0x40a3b0
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
push edx
push edx
mov word [eax + ecx*2], dx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CRgn.0
call fcn.00406c10
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0054940a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402650
int3