Function at 0x43e050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485830
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x43e15d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410191
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], 0
lea ebx, [esi + 0x74]
push ecx
push 0
push ebx
mov eax, 0x4ca5a8
cmovne eax, dword [ebp - 0x20]
push 0
push eax
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x43e272
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x43e12e
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43e12e
add ecx, ecx
je 0x43e12e
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43e120
mov eax, dword [ebp - 0x20]
push eax
call fcn.0043af60
add esp, 4
cmp dword [esi + 4], 0
jne 0x43e150
mov eax, dword [ebx]
cmp eax, 1
je 0x43e171
cmp eax, 2
je 0x43e171
mov dword [esi + 4], 0x70c
push str.RegQueryValueExW__
lea ecx, [esi + 8]
call fcn.0043b900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x10]
mov edi, dword [ebp + 0x18]
mov ecx, edi
call fcn.00415630
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 6
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410191
mov dword [ebp - 4], 7
cmp dword [edi], 0
jne 0x43e283
cmp dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x10]
push ecx
push dword [edi + 4]
mov eax, 0x4ca5a8
cmovne eax, dword [ebp - 0x30]
push ebx
push 0
push eax
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x43e272
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x43e224
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x43e224
add ecx, ecx
je 0x43e224
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43e216
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043af60
add esp, 4
cmp dword [esi + 4], 0
je 0x43e254
push str.RegQueryKeyEx__
lea ecx, [esi + 8]
call fcn.00414544
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00415630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x46
mov edx, str.NumCast
mov ecx, str.value___0
call fcn.00417c20
push 0x1e2
mov edx, str.datavect_unsigned_char_::begin
mov ecx, str._af_
call fcn.00417c20
int3