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

Disassembly:
sub esp, 0x748
push ebx
push ebp
push esi
mov dword [esp + 0x30], ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 9
mov esi, 0x464a8c
lea edi, [esp + 0x110]
push 1
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x114]
push 0x27
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040c5e0
add esp, 0xc
lea ecx, [esp + 0x20]
xor ebx, ebx
lea edx, [esp + 0x110]
push ecx
push 0x20019
push ebx
push edx
push connect
call dword [0x467220]
test eax, eax
jne 0x436d11
mov ecx, 0x10
lea edi, [esp + 0xcd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 8
mov esi, 0x464a68
lea edi, [esp + 0xcc]
push 1
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0xd0]
push 0x23
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040c5e0
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0xcc]
push ecx
push 0x20019
push ebx
push edx
push connect
call dword [0x467220]
test eax, eax
jne 0x436d11
mov ecx, 0x14
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xc
mov esi, 0x464a34
lea edi, [esp + 0x38]
push 1
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3c]
push 0x32
push eax
movsw word es:[edi], word [esi]
call fcn.0040c5e0
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x365]
mov byte [esp + 0x364], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x565]
mov byte [esp + 0x564], bl
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x368]
push ecx
stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push edx
mov ebp, 0x200
push ebx
push eax
mov byte [esp + 0x7b], bl
mov byte [esp + 0x6e], bl
mov byte [esp + 0x68], bl
mov byte [esp + 0x63], bl
mov byte [esp + 0x5d], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x436cf6
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x358]
push ecx
push 0x20019
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x436d06
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x558]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
mov dword [esp + 0x28], ebp
call esi
cmp eax, 2
jne 0x4369de
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x436c87
lea edi, [esp + 0x558]
lea eax, [esp + 0x3e]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x436a0d
test cl, cl
je 0x436a09
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x436a0d
add eax, 2
add edi, 2
test cl, cl
jne 0x4369e9
xor eax, eax
jmp 0x436a12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x436a26
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x436c87
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x4c]
push 0
push edx
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x55]
push 0
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 4
mov dword [esp + 0x3c], 0
call esi
mov eax, dword [esp + 0x24]
xor edx, edx
test eax, eax
mov dword [esp + 0x28], edx
jle 0x436c78
jmp 0x436a96
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea edx, [esp + 0x90]
push 0x4632c0
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x158]
lea edx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x98]
push 0
push eax
push ecx
mov dword [esp + 0x28], ebp
call esi
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
push 0x20019
lea eax, [esp + 0x160]
push 0
push eax
push ecx
call ebx
lea edx, [esp + 0x10]
lea eax, [esp + 0x158]
push edx
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x5b]
push 0
push edx
push eax
mov dword [esp + 0x28], ebp
call esi
cmp eax, 2
jne 0x436c4e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x158]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push 0
push ecx
push edx
mov dword [esp + 0x28], ebp
call esi
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x158]
or ecx, 0xffffffff
lea ebp, [eax + 0xa4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x436b9e
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
xor edi, edi
cmp ecx, edi
je 0x436bc9
mov al, byte [ecx - 1]
test al, al
je 0x436bc9
cmp al, 0xff
je 0x436bc9
cmp ebx, edi
jne 0x436c16
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
jmp 0x436c49
cmp ebx, edi
jne 0x436c00
cmp ecx, edi
je 0x436bf5
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x436bec
cmp al, 0xff
je 0x436bec
dec al
mov byte [ecx], al
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
jmp 0x436c49
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
jmp 0x436c49
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x436c0c
cmp eax, ebx
jae 0x436c1f
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x158]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ebp, 0x200
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc edx
mov dword [esp + 0x18], 0
cmp edx, eax
mov dword [esp + 0x28], edx
jl 0x436a90
mov edx, dword [esp + 0x14]
push edx
call edi
mov dword [esp + 0x14], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x359]
mov byte [esp + 0x358], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x559]
mov byte [esp + 0x558], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x2c]
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x368]
inc edx
push eax
push ecx
mov dword [esp + 0x44], edx
push edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x436976
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x748
ret
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x748
ret