Function at 0x401e50
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6ac
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x690], 0x730025
mov dword [ebp - 0x68c], 0x25000a
mov dword [ebp - 0x688], 0x73
mov dword [ebp + eax - 0x67c], edx
mov dword [ebp + eax - 0x678], edx
add eax, 8
cmp eax, 0x20
jb 0x401e81
lea esi, [ebp - 0x418]
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dword [ebp - 0x684], 1
mov edi, esi
mov dword [ebp - 0x680], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x670], 0x100
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x684]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
jne 0x402305
mov ecx, dword [ebp - 0x674]
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401f10
mov dword [esp + 4], esi
mov eax, dword [section..bss]
mov dword [esp], eax
call sym._SetWindowTextW_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130c
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x660]
sub esp, 0x10
test eax, eax
je 0x401f6f
test byte [eax], 4
jne 0x40233f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1308
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1308
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea eax, [ebp - 0x618]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], ebx
call dbg.CreateRegPath
test eax, eax
je 0x4021a8
lea edi, [ebp - 0x616]
mov ebx, 0xffff0000
mov esi, 0xffffffff
mov dword [esp + 4], 5
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x218]
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x640], 0x100
sub esp, 0x10
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x658], 0xffff0002
mov dword [ebp - 0x65c], 0xffff0000
jmp 0x4020bb
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0x5c
je 0x4020d4
test ax, ax
jne 0x4020b8
cmp ax, 0x5c
jne 0x402450
xor eax, eax
mov word [edi - 2], ax
lea eax, [ebp - 0x698]
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x402234
cmp word [ebp - 0x618], 0
je 0x402330
lea eax, [ebp - 0x618]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402120
lea ecx, [ebp - 0x618]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x694], 0x200
mov eax, 0x5c
mov word [edi - 2], ax
lea eax, [ebp - 0x694]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call sym._RegQueryValueW_16
sub esp, 0x10
test eax, eax
je 0x402240
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x65c], ebx
mov dword [esp], eax
call sym._RegCloseKey_4
mov esi, dword [ebp - 0x69c]
sub esp, 4
jmp 0x4020b8
mov dword [esp + 4], 0
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x69c]
lea ebx, [esi + 1]
mov ecx, dword [ebp - 0x694]
lea eax, [ebp - 0x218]
sub edx, ebx
lea esi, [edx + edx + 6]
mov dword [ebp - 0x6a4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x6a0], ecx
mov dword [esp + 4], eax
add eax, esi
sub esi, 6
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
lea eax, [ebp + ebx*2 - 0x618]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x6a0]
xor eax, eax
mov edx, dword [ebp - 0x6a4]
cmp ecx, 1
je 0x4022cc
mov ecx, 0x20
mov eax, 0x3d
mov word [ebp + edx*2 - 0x214], cx
mov word [ebp + edx*2 - 0x216], ax
mov eax, 0x20
mov word [ebp + edx*2 - 0x218], ax
lea eax, [ebp - 0x65c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov ebx, eax
jmp 0x402181
add eax, 0x202
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x674]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x690]
mov dword [esp + 4], eax
call sym._wsprintfW
jmp 0x401f20
mov dword [ebp - 0x69c], 0
jmp 0x402139
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1304
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
cmp eax, 1
jne 0x401fbf
xor edx, edx
xor eax, eax
mov dword [ebp + eax - 0x214], edx
mov dword [ebp + eax - 0x210], edx
add eax, 8
cmp eax, 0x18
jb 0x402374
lea eax, [ebp - 0x618]
lea esi, [ebp - 0x218]
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfb
mov eax, dword [0x41603c]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x133e
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x618]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfc
mov eax, dword [0x41603c]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x133e
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x401fbf
lea eax, [ebp - 0x698]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x618]
mov dword [esp + 4], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x402234
mov dword [esp], 1
mov eax, dword [ebp - 0x698]
lea ecx, [ebp + esi*2 - 0x616]
mov edx, ebx
call dbg.CreateRegRec
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x402234