Function at 0x40adc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64835b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ae1d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x428], edi
mov byte [ebp - 4], 2
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ae4d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x41c]
push ecx
push 0xf003f
push 0
push str.http_shellopencommand
push SysReAllocString
mov dword [ebp - 0x420], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40af0b
push 0x400
push eax
lea edx, [ebp - 0x410]
push edx
mov dword [ebp - 0x414], 0x400
call fcn.005236f0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x418]
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aefe
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aee0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call fcn.00402ad0
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
js 0x40af44
push 0x6ccbb0
push eax
call fcn.00522032
add esp, 8
test eax, eax
je 0x40af44
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x40af44
mov eax, dword [ebp + 8]
push eax
push 0x6ccbb0
mov ecx, esi
call fcn.004063e0
jmp 0x40afc6
push 0x6cc78c
lea ecx, [ebp - 0x418]
push esi
push ecx
call fcn.00402600
lea edx, [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x414]
push eax
mov byte [ebp - 4], 3
call fcn.00402540
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00402930
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret