Function at 0x439310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e25de
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 0x439576
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 0x439465
mov eax, dword [ebp - 0x41c]
cmp eax, 1
je 0x4393f6
cmp eax, 2
jne 0x439465
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x43945c
test al, 1
jne 0x439465
shr eax, 1
cmp word [ebp + eax*2 - 0x412], 0
jne 0x439465
xor eax, eax
cmp ax, word [ebp - 0x410]
je 0x439465
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 0x439434
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 0x43946c
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 0x439569
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 0x439523
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x439511
cmp eax, 2
jne 0x439523
cmp dword [ebp - 0x414], 0
jne 0x439523
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 0x439530
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 0x43955f
push edi
call esi
mov edi, dword [ebp - 0x42c]
mov bl, 1
jmp 0x439578
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x439576
push eax
call esi
xor bl, bl
test edi, edi
je 0x43957f
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