Function at 0x4021ca
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x433000
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x338
push ebx
mov ebx, dword [ecx + 0x7c]
push esi
push edi
lea eax, [ebp - 0x13b]
push 0x104
push eax
add ebx, 4
push dword [0x443fd4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x442294
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x13c], 0x22
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, [ebp - 0x13c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.HHA.dll_Ordinal_23
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov edi, 0x4420e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x13c]
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 ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CString::CString_2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC40.DLL_CString::CString_2
mov esi, dword [ebx + 4]
mov byte [ebp - 4], 3
mov ebx, Ordinal_2
test esi, esi
je 0x4023e7
mov eax, esi
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
push 5
mov edi, dword [eax + 8]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x68]
test eax, eax
je 0x4022a1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x4022a1
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push 6
push ecx
mov ecx, edi
call dword [eax + 0x68]
test eax, eax
jne 0x4022e7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC40.DLL_CString::operator_1
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push 4
push ecx
mov ecx, edi
call dword [eax + 0x68]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x208
push eax
lea eax, [ebp - 0x344]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x40231c
cmp byte [ebp - 0x344], al
jne 0x40238e
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x4022a1
push 0x4420d0
lea eax, [ebp - 0x344]
push dword [ebp - 0x14]
push 0x4420b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x13c]
push ecx
push eax
lea eax, [ebp - 0x344]
push 1
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x4022a1
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0
je 0x4022a1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x208
push ecx
lea ecx, [ebp - 0x344]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4023c5
cmp byte [ebp - 0x344], al
jne 0x4022a1
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
jmp 0x4022a1
mov esi, dword [ebp - 0x10]
or edx, 0xffffffff
mov edi, esi
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
and byte [ecx + esi - 1], al
mov eax, dword [ebp - 0x10]
mov ecx, edx
lea esi, [ebp - 0x13c]
lea edi, [eax + 1]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x1c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x442290
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x13c]
sub edi, ecx
mov dword [ebp - 0x1c], esi
mov eax, ecx
mov ecx, dword [ebp - 0x1c]
mov esi, edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov ecx, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x1c]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x13c]
push ecx
push eax
push 1
push 0x442278
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lea edx, [ebp - 0x13c]
lea edi, [eax + 1]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x442274
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x13c]
push ecx
push eax
push 1
push 0x44225c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lea edx, [ebp - 0x13c]
lea edi, [eax + 1]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x442258
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x13c]
push ecx
push eax
push 1
push 0x442240
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
and byte [ebp - 0x344], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x208
lea eax, [ebp - 0x344]
mov esi, 0x4420f0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4025b6
cmp byte [ebp - 0x344], al
jne 0x402629
mov edx, 0x442234
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0x442294
lea ecx, [ebp - 0x10]
call fcn.0040282c
push 0x4420e8
lea ecx, [ebp - 0x10]
call fcn.0040282c
push 0x4420d0
push esi
lea eax, [ebp - 0x344]
push 0x4420b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp - 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x344]
push ecx
push dword [ebp - 0x10]
push 1
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
and byte [ebp - 0x344], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x344]
push eax
push 0x44222c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x402653
cmp byte [ebp - 0x344], al
jne 0x40266f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 1
push 0x44222c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC40.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4026a5
push dword [ebp - 0x10]
call sub.HHA.dll_Ordinal_132
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret