Function at 0x402200
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, 0xa
mov ebp, esp
push edi
lea eax, [ebp - 0x48]
lea edi, [ebp - 0x48]
push esi
mov esi, 0x401d80
push ebx
sub esp, 0x8bc
cld
rep movsd dword es:[edi], dword [esi]
movzx edx, byte [0x401daa]
mov ecx, 9
movzx esi, word [0x401da8]
movzx ebx, word [0x401de4]
mov byte [edi + 2], dl
lea edx, [ebp - 0x87c]
mov word [edi], si
mov esi, 0x401dc0
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [0x401de6]
mov word [edi], bx
mov byte [edi + 2], cl
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 9
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x402527
mov dword [esp + 0xc], 9
lea ebx, [ebp - 0x87c]
lea esi, [ebp - 0x78]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40240b
mov eax, dword [0x406024]
test eax, eax
je 0x402344
mov esi, 0x400
dec eax
mov dword [ebp - 0x8a0], esi
je 0x4023ff
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
lea edi, [ebp - 0x478]
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x401de7
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x405200
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov dword [esp + 0xc], 1
lea edx, [ebp - 0x87c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40234e
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0x87c]
lea edi, [ebp - 0x8a0]
mov dword [esp + 0x14], edi
lea ebx, [ebp - 0x878]
lea esi, [ebp - 0x8a4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x401de9
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4023e9
xor edx, edx
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [ebp + edx - 0x878]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx], bl
inc edx
test bl, bl
jne 0x4023a0
cmp dword [0x406024], 2
je 0x4023d7
mov edx, dword [ebp - 0x87c]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
jmp 0x402346
mov dword [esp + 4], 0x401df2
mov dword [esp], ecx
call sub.msvcrt.dll_strcat
jmp 0x4023bc
mov ecx, dword [ebp - 0x87c]
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x402344
lea ebx, [ebp - 0x48]
mov dword [esp + 4], ebx
jmp 0x4022e5
movzx ecx, byte [0x401df7]
mov ebx, 0x400
mov dword [esp + 8], 0x3ff
mov edi, dword [ebp - 0x87c]
lea edx, [ebp - 0x477]
mov dword [ebp - 0x89c], ebx
xor esi, esi
lea ebx, [ebp - 0x478]
mov byte [ebp - 0x478], cl
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
nop
mov dword [esp + 4], esi
lea ecx, [ebp - 0x898]
inc esi
mov dword [esp + 0x1c], ecx
lea edx, [ebp - 0x89c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x402511
mov dword [esp + 4], 0x405100
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x4024d0
cmp byte [0x405180], 0
je 0x4024e0
mov dword [esp + 4], 0x405180
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x4024e0
lea esi, [esi]
lea edi, [edi]
mov eax, 0x400
mov dword [ebp - 0x89c], eax
jmp 0x402450
mov dword [esp + 4], 0x405200
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x4024d0
mov dword [esp + 4], ebx
mov dword [esp], 0x405200
call sub.msvcrt.dll_strcpy
mov edx, 2
mov dword [0x406024], edx
jmp 0x4024d0
mov edi, dword [ebp - 0x87c]
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x4022c3
movzx ebx, byte [0x401df7]
mov edx, 0x400
mov dword [esp + 8], 0x3ff
mov edi, dword [ebp - 0x87c]
lea ecx, [ebp - 0x477]
mov dword [ebp - 0x88c], edx
xor esi, esi
mov dword [esp + 4], 0
mov byte [ebp - 0x478], bl
lea ebx, [ebp - 0x478]
mov dword [esp], ecx
call sub.msvcrt.dll_memset
nop
lea esi, [esi]
mov dword [esp + 4], esi
lea ecx, [ebp - 0x888]
inc esi
mov dword [esp + 0x1c], ecx
lea eax, [ebp - 0x88c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
sub esp, 0x20
test eax, eax
jne 0x402631
mov dword [esp + 4], 0x405100
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x4025f0
cmp byte [0x405180], 0
je 0x402600
mov dword [esp + 4], 0x405180
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x402600
lea esi, [esi]
lea edi, [edi]
mov edx, 0x400
mov dword [ebp - 0x88c], edx
jmp 0x402570
mov dword [esp + 4], 0x405200
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
jle 0x4025f0
mov dword [esp + 4], ebx
mov dword [esp], 0x405200
call sub.msvcrt.dll_strcpy
mov ecx, 1
mov dword [0x406024], ecx
jmp 0x4025f0
mov edi, dword [ebp - 0x87c]
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x40228b