Function at 0x402920
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 [0x40a090]
and ebx, 0x100
test eax, eax
je 0x402970
mov edx, dword [ebp + 8]
test ebx, ebx
mov dword [esp + 0xc], edx
mov edx, 0x409207
jne 0x40295b
mov edx, 0x40920a
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 0x4029ac
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 0x402a4f
lea eax, [ebp - 0x348]
mov esi, 0x412460
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402b5f
mov eax, dword [0x40a090]
test eax, eax
jne 0x402c10
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 0x402c8b
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 0x402acd
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 [0x40a090]
test eax, eax
jne 0x402bf0
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 0x402b1b
lea esi, [eax + 1]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
cmp eax, 2
jbe 0x402c30
lea ebx, [ebp - 0x238]
lea esi, [ebp - 0x348]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov ecx, 0x4123e0
lea edx, [ebp - 0x348]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x402a37
cmp byte [0x412460], 0
jne 0x402a18
mov edx, 0x4124e0
lea ebx, [ebp - 0x348]
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402a37
mov dword [esp], edi
mov ecx, dword [ebp - 0x360]
mov dword [esp + 4], ecx
call fcn.004027a0
test eax, eax
je 0x402a37
mov dword [esp], 0x4124e0
lea esi, [ebp - 0x348]
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], edi
mov dword [esp], 0x412560
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x360]
mov dword [0x4122d4], eax
mov eax, dword [0x40a090]
test eax, eax
je 0x402a44
lea edx, [ebp - 0x348]
mov ebx, str.Match:_t_t_s_n
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
jmp 0x402c23
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 0x402aec
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 0x402a44
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 0x402b33
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