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

Disassembly:
sub esp, 0x8cc
mov eax, dword [esp + 0x8d0]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
push ebp
push esi
push edi
push 0x404054
push eax
call ebx
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x18], edi
je 0x40172a
mov ebp, dword [0x404198]
test ebp, ebp
je 0x401100
mov esi, edi
lea eax, [ebp + 4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4010e3
test cl, cl
je 0x4010df
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4010e3
add eax, 2
add esi, 2
test cl, cl
jne 0x4010bf
xor eax, eax
jmp 0x4010e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4010f8
mov ebp, dword [ebp + 0x5c0]
test ebp, ebp
jne 0x4010ba
jmp 0x401100
test ebp, ebp
jne 0x40156f
mov eax, dword [0x404198]
test eax, eax
je 0x4012c6
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x14], 0x400
push str.lcfd
jne 0x401132
lea eax, [esp + 0x54]
push eax
call ebx
add esp, 8
jmp 0x4011a6
lea ecx, [esp + 0x54]
push ecx
call ebx
mov edi, 0x404048
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xa
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll__itoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4dc]
push eax
push str.SYSTEMCurrentControlSetServices_s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x4dc]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401215
lea ecx, [esp + 0x14]
lea edx, [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.ImagePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40121d
mov byte [esp + 0xdc], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + ebp*4 + 0xb4], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jbe 0x401291
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401291
mov ecx, dword [0x404198]
push eax
mov eax, dword [0x4041b8]
mov edx, dword [ecx]
push edx
push 0x1308
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x40419c]
inc ebp
cmp ebp, eax
jbe 0x401115
mov ecx, dword [0x404198]
mov eax, dword [ecx + 0x5c0]
mov dword [0x40419c], 0
test eax, eax
mov dword [0x404198], eax
jne 0x401113
mov edi, dword [esp + 0x18]
push 0x5c4
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40172a
mov edx, dword [0x40419c]
xor eax, eax
mov dword [ebp], edx
mov ecx, dword [0x40419c]
inc ecx
lea ebx, [ebp + 4]
mov dword [0x40419c], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x204]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x304]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x368]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x3cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x494]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x4f8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x404054
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x55c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x404198]
mov dword [ebp + 0x5c0], ecx
mov eax, dword [0x404198]
test eax, eax
jne 0x401524
mov edx, dword [0x4041b8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3f2
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [0x4041b8]
push 5
push 0x3f3
push eax
call esi
push eax
call edi
jmp 0x40152a
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [0x4041b8]
mov dword [0x404198], ebp
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0x1307
push 0x3f3
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401713
push 0x404054
push 0
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x204]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x304]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x368]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x3cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x430]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x494]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404054
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x4f8]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x404054
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x55c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov edx, dword [0x4041b8]
push ebp
push ecx
push 0x8065
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8cc
ret