Function at 0x4027f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x37c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x360], eax
mov ebx, eax
mov eax, dword [0x408090]
and ebx, 0x100
test eax, eax
je 0x402840
mov edx, dword [ebp + 8]
test ebx, ebx
mov dword [esp + 0xc], edx
mov edx, 0x407211
jne 0x40282b
mov edx, 0x407214
mov dword [esp + 8], edx
mov esi, str._s_bit_search:_t_s..._n
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
or ebx, 0x20019
lea edi, [ebp - 0x34c]
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], 0x80000002
mov dword [esp + 4], ecx
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40287c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x104
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x35c], edi
mov esi, 0x104
lea edi, [ebp - 0x128]
mov dword [ebp - 0x364], ecx
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov esi, 0x104
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 4], ebx
lea ecx, [ebp - 0x238]
mov eax, 0x104
mov dword [esp + 8], eax
mov dword [esp], ecx
call sub.msvcrt.dll_memset
mov dword [esp + 8], esi
xor edx, edx
lea eax, [ebp - 0x348]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x40291f
lea eax, [ebp - 0x348]
mov esi, 0x410460
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402a2f
mov eax, dword [0x408090]
test eax, eax
jne 0x402ae0
mov eax, 0x104
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x358]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x238]
mov dword [esp + 0x18], edx
lea esi, [ebp - 0x35c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x364]
mov dword [esp + 4], edx
mov ebx, dword [ebp - 0x34c]
inc edx
mov dword [ebp - 0x364], edx
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x402b5b
mov ebx, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
cmp byte [eax + edi - 1], 0x5c
je 0x40299d
mov word [eax + edi], 0x5c
mov dword [esp], edi
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov eax, dword [0x408090]
test eax, eax
jne 0x402ac0
mov ecx, 0x5f
lea esi, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4029eb
lea esi, [eax + 1]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 2
jbe 0x402b00
lea ebx, [ebp - 0x238]
lea esi, [ebp - 0x348]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov ecx, 0x4103e0
lea edx, [ebp - 0x348]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x402907
cmp byte [0x410460], 0
jne 0x4028e8
mov edx, 0x4104e0
lea ebx, [ebp - 0x348]
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402907
mov dword [esp], edi
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], ecx
call fcn.00402670
test eax, eax
je 0x402907
mov dword [esp], 0x4104e0
lea esi, [ebp - 0x348]
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], edi
mov dword [esp], 0x410560
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x360]
mov dword [0x4102d4], eax
mov eax, dword [0x408090]
test eax, eax
je 0x402914
lea edx, [ebp - 0x348]
mov ebx, str.Match:_t_t_s_n
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
jmp 0x402af3
mov dword [esp + 8], edi
mov edx, str.Check:_t_t_s_n
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4029bc
lea esi, [ebp - 0x348]
mov ecx, str.Ignore:_t_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402914
lea eax, [ebp - 0x238]
mov ebx, esi
sub ebx, eax
mov dword [esp + 8], ebx
lea edx, [ebp - 0x348]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
xor ecx, ecx
lea eax, [ebp - 0x348]
mov byte [ebx + ebp - 0x348], cl
lea ebx, [ebp - 0x348]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, 0x30
mov word [eax + ebp - 0x348], dx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
jmp 0x402a03
mov edi, dword [ebp - 0x34c]
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret