Function at 0x439a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e270e
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x513200]
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.00437e90
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x42c]
test eax, eax
jne 0x439cd6
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0048bb90
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 0x439bc5
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x439b56
cmp eax, 2
jne 0x439bc5
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x439bbc
test al, 1
jne 0x439bc5
shr eax, 1
cmp word [ebp + eax*2 - 0x412], 0
jne 0x439bc5
xor eax, eax
cmp ax, word [ebp - 0x410]
je 0x439bc5
push 1
push 0x4f5628
lea ecx, [ebp + 8]
call fcn.0043a4e0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439b94
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.0043a4e0
push 8
push str.command
jmp 0x439bcc
xor eax, eax
mov word [ebp - 0x410], ax
push 0xd
push str.opencommand
lea ecx, [ebp + 8]
call fcn.0043a4e0
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.00437e90
test eax, eax
jne 0x439cc9
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0048bb90
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 0x439c83
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x439c71
cmp eax, 2
jne 0x439c83
cmp dword [ebp - 0x414], 0
jne 0x439c83
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 0x439c90
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x410]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0043a210
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x439cbf
push edi
call esi
mov edi, dword [ebp - 0x42c]
mov bl, 1
jmp 0x439cd8
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x439cd6
push eax
call esi
xor bl, bl
test edi, edi
je 0x439cdf
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0041c300
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.00489940
mov esp, ebp
pop ebp
ret