Function at 0x43da50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485750
mov eax, dword fs:[0]
push eax
sub esp, 0x180
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 0x43dca2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov ecx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00410191
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x20], 0
lea ebx, [esi + 0x74]
push ecx
push 0
push ebx
mov eax, 0x4ca5a8
cmovne eax, dword [ebp - 0x24]
push 0
push eax
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x43dcb6
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x43db2e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x43db2e
add ecx, ecx
je 0x43db2e
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43db20
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043af60
add esp, 4
cmp dword [esi + 4], 0
je 0x43db68
push str.RegQueryValueExW__
lea ecx, [esi + 8]
call fcn.0043b900
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0xa8]
push eax
call fcn.0046b639
mov eax, dword [ebx]
cmp eax, dword [ebp + 8]
je 0x43dba6
cmp eax, dword [ebp + 0xc]
je 0x43dba6
push str.RegQueryValueExW__
lea ecx, [esi + 8]
mov dword [esi + 4], 0x70c
call fcn.0043b900
push ecx
push esi
lea ecx, [ebp - 0x118]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0x118]
push eax
call fcn.0046b639
push dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00415630
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 6
mov ecx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00410191
mov dword [ebp - 4], 7
cmp dword [edi], 0
jne 0x43dcc7
cmp dword [ebp - 0x30], 0
lea ecx, [ebp - 0x14]
push ecx
push dword [edi + 4]
mov eax, 0x4ca5a8
cmovne eax, dword [ebp - 0x34]
push ebx
push 0
push eax
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
js 0x43dcb6
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x43dc5e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x43dc5e
add ecx, ecx
je 0x43dc5e
jmp 0x43dc50
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x43dc50
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043af60
add esp, 4
cmp dword [esi + 4], 0
je 0x43dc98
push str.RegQueryKeyEx__
lea ecx, [esi + 8]
call fcn.00414544
push ecx
push esi
lea ecx, [ebp - 0x188]
call fcn.0043bf60
push 0x4c3934
lea eax, [ebp - 0x188]
push eax
call fcn.0046b639
push dword [ebp - 0x14]
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