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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
mov eax, 0x730025
push dword [ecx - 4]
push ebp
mov edx, 0x25000a
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x678]
push ecx
mov edi, ebx
lea ebx, [ebp - 0x410]
sub esp, 0x6a8
mov esi, dword [ecx]
mov dword [ebp - 0x690], eax
mov ecx, 8
xor eax, eax
mov dword [ebp - 0x68c], edx
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
mov edi, ebx
mov dword [ebp - 0x688], 0x73
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x680]
mov dword [ebp - 0x680], 1
lea eax, [ebp - 0x610]
mov dword [ebp - 0x67c], esi
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x66c], 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov eax, dword [0x41a030]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x69c], eax
call eax
mov edx, dword [ebp - 0x65c]
xor eax, eax
mov ecx, dword [ebp - 0x670]
sub esp, 0x10
test edx, edx
jne 0x402470
lea esi, cs:[esi]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401f50
mov dword [esp + 4], ebx
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130c
mov eax, dword [0x41a004]
mov dword [esp], eax
mov eax, dword [ebp - 0x69c]
call eax
mov eax, dword [ebp - 0x65c]
mov edx, dword [0x41a004]
sub esp, 0x10
test eax, eax
je 0x401fb9
test byte [eax], 4
jne 0x40235c
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1308
mov edi, dword [ebp - 0x69c]
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1308
mov eax, dword [0x41a004]
mov dword [esp], eax
call edi
sub esp, 0x10
lea eax, [ebp - 0x610]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00406ec0
mov edx, dword [0x41a004]
test eax, eax
je 0x402200
mov dword [esp], edx
lea edi, [ebp - 0x60e]
mov dword [esp + 4], 5
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov eax, dword [0x41a008]
mov dword [esp], eax
mov esi, dword [ebp - 0x69c]
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x41a008]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov eax, dword [0x41a008]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x210]
mov edx, 0xffff0002
mov esi, 0xffffffff
sub esp, 0x10
mov dword [ebp - 0x640], eax
mov eax, 0xffff0000
mov dword [ebp - 0x650], 1
mov dword [ebp - 0x63c], 0x100
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x654], edx
mov dword [ebp - 0x6a0], 0xffff0000
jmp 0x4021df
cmp ax, 0x5c
jne 0x4024a7
lea eax, [ebp - 0x698]
xor edx, edx
mov word [edi - 2], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x610]
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x402285
cmp word [ebp - 0x610], 0
je 0x4024a0
lea ebx, [ebp - 0x610]
lea esi, cs:[esi]
add ebx, 2
cmp word [ebx], 0
jne 0x402160
lea eax, [ebp - 0x610]
sub ebx, eax
sar ebx, 1
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 - 0x210]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x402298
mov eax, dword [ebp - 0x6a0]
mov esi, ebx
mov dword [ebp - 0x658], eax
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add edi, 2
movzx eax, word [edi - 2]
cmp ax, 0x5c
je 0x402112
test ax, ax
jne 0x4021dc
jmp 0x402108
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov eax, dword [0x41a008]
mov dword [esp], eax
mov esi, dword [ebp - 0x69c]
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x41a008]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov eax, dword [0x41a008]
mov dword [esp], eax
call esi
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x694]
add esi, 1
mov ecx, ebx
sub ecx, esi
lea edx, [ecx + ecx + 6]
mov dword [ebp - 0x6a8], ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x6a0], eax
mov dword [esp + 8], eax
lea eax, [ecx + edx]
mov dword [esp + 4], ecx
mov dword [ebp - 0x6a4], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov edx, dword [ebp - 0x6a4]
lea eax, [ebp + esi*2 - 0x610]
lea esi, [ebp - 0x210]
mov dword [esp + 4], eax
mov dword [esp], esi
sub edx, 6
mov dword [esp + 8], edx
call sub.ucrtbase.dll_memcpy
xor eax, eax
cmp dword [ebp - 0x6a0], 1
mov ecx, dword [ebp - 0x6a8]
je 0x40231c
mov dword [ebp + ecx*2 - 0x20e], 0x20003d
mov eax, 0x20
mov word [ebp + ecx*2 - 0x210], ax
lea eax, [ebp - 0x658]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x41a008]
mov dword [esp], eax
mov eax, dword [ebp - 0x69c]
call eax
sub esp, 0x10
mov dword [ebp - 0x6a0], eax
jmp 0x4021bc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1304
mov dword [esp], edx
mov eax, dword [ebp - 0x69c]
call eax
sub esp, 0x10
cmp eax, 1
jne 0x402004
lea ecx, [ebp - 0x20c]
xor edx, edx
xor eax, eax
mov dword [ecx + eax], edx
mov dword [ecx + eax + 4], edx
add eax, 8
cmp eax, 0x18
jb 0x402395
lea eax, [ebp - 0x610]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x204], eax
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x200], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0xfb
mov eax, dword [0x41a03c]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x133e
mov eax, dword [0x41a004]
mov dword [esp], eax
mov eax, dword [ebp - 0x69c]
call eax
lea ecx, [ebp - 0x610]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfc
mov eax, dword [0x41a03c]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x133e
mov eax, dword [0x41a004]
mov dword [esp], eax
mov eax, dword [ebp - 0x69c]
call eax
sub esp, 0x10
jmp 0x402004
lea eax, [ebp - 0x690]
add edx, 0x202
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.user32.dll_wsprintfW]
jmp 0x401f60
xor ebx, ebx
jmp 0x402173
lea eax, [ebp - 0x698]
mov dword [esp], 0x80000000
mov dword [esp + 8], eax
lea eax, [ebp - 0x610]
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x402285
lea ecx, [ebp + esi*2 - 0x60e]
mov dword [esp], 1
mov esi, dword [ebp - 0x6a0]
mov eax, dword [ebp - 0x698]
mov edx, esi
call section..text
mov eax, dword [ebp - 0x698]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov eax, dword [0x41a008]
mov dword [esp], eax
mov edi, dword [ebp - 0x69c]
call edi
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1114
mov eax, dword [0x41a008]
mov dword [esp], eax
call edi
sub esp, 0x10
jmp 0x402285