Function at 0x512d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x6ec0c8
push ebx
push 0x6c3244
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x512fb3
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
mov ebp, 4
push 0x6d6b3c
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512d8a
mov byte [esi + 0x19], bl
jmp 0x512d94
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x19], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x6d6b2c
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512db9
mov byte [esi + 0x1a], bl
jmp 0x512dc3
cmp dword [esp + 0x14], ebx
setne al
mov byte [esi + 0x1a], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x6d6b1c
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512de8
mov byte [esi + 0x1b], bl
jmp 0x512df2
cmp dword [esp + 0x14], ebx
sete cl
mov byte [esi + 0x1b], cl
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push 0x6d6afc
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512e17
mov byte [esi + 0x2c], bl
jmp 0x512e21
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x2c], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x6d6aec
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512e46
mov byte [esi + 0x2f], bl
jmp 0x512e50
cmp dword [esp + 0x14], ebx
setne al
mov byte [esi + 0x2f], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x6d6ad8
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512e75
mov byte [esi + 0x2d], bl
jmp 0x512e7f
cmp dword [esp + 0x14], ebx
setne cl
mov byte [esi + 0x2d], cl
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push 0x6d6ac4
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512ea4
mov byte [esi + 0x2e], bl
jmp 0x512eae
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x2e], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x6d6b0c
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x512ed7
mov dword [esi + 0x28], 0x7f
jmp 0x512ede
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x6d6ab8
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x512f07
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], ecx
jmp 0x512f24
push 0xffffffffffffffff
push ebx
push ebx
push 0x17
push 1
push 1
push 0x7d2
lea ecx, [esp + 0x3c]
call fcn.005f3756
mov edx, dword [eax]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push 0x6d6aac
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x512f4d
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
jmp 0x512f50
mov dword [esi + 0x20], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push 0x6d6aa0
push eax
mov dword [esp + 0x28], ebp
call edi
pop edi
pop ebp
test eax, eax
jne 0x512f8a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
mov dword [esi + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x14
ret
push 0xffffffffffffffff
push ebx
push 0x1e
push 7
push 1
push 1
push 0x7d2
lea ecx, [esp + 0x34]
call fcn.005f3756
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov dword [esi + 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x14
ret