Function at 0x43d770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e852e
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x42c]
push eax
push edx
call fcn.0043bb90
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x42c]
test eax, eax
jne 0x43d9d6
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00491400
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push edi
call ebx
test eax, eax
jne 0x43d8c5
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x43d856
cmp eax, 2
jne 0x43d8c5
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x43d8bc
test al, 1
jne 0x43d8c5
shr eax, 1
cmp word [ebp + eax*2 - 0x412], 0
jne 0x43d8c5
xor eax, eax
cmp ax, word [ebp - 0x410]
je 0x43d8c5
push 1
push 0x4fb6d8
lea ecx, [ebp + 8]
call fcn.0043dfd0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d894
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043dfd0
push 8
push str.command
jmp 0x43d8cc
xor eax, eax
mov word [ebp - 0x410], ax
push 0xd
push str.opencommand
lea ecx, [ebp + 8]
call fcn.0043dfd0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.0043bb90
test eax, eax
jne 0x43d9c9
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00491400
mov edi, dword [ebp - 0x438]
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push edi
call ebx
test eax, eax
jne 0x43d983
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x43d971
cmp eax, 2
jne 0x43d983
cmp dword [ebp - 0x414], 0
jne 0x43d983
xor eax, eax
mov word [ebp - 0x410], ax
lea edx, [ebp - 0x410]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43d990
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x410]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0043a1c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43d9bf
push edi
call esi
mov edi, dword [ebp - 0x42c]
mov bl, 1
jmp 0x43d9d8
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x43d9d6
push eax
call esi
xor bl, bl
test edi, edi
je 0x43d9df
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0041e8e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret