Function at 0x40fd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ef67
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58abb4]
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 edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
push 1
push 0
push 0x53fb44
push 0x80000000
call edi
test eax, eax
jne 0x41000c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x228], 0x104
call ebx
test eax, eax
jne 0x40ffff
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 0
je 0x41000c
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00404630
push str._shellopencommand
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.00402090
mov edx, dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
push ecx
push 1
push 0
push edx
push 0x80000000
call edi
test eax, eax
jne 0x40ffd4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0
push 0
push eax
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x228], 0x104
call ebx
test eax, eax
jne 0x40ffc7
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 0
je 0x40ffd4
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call fcn.00401df0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x40ff70
push 0x22
push eax
call fcn.00510bc0
add esp, 8
test eax, eax
je 0x40ff70
sub eax, dword [esi]
sar eax, 1
jne 0x40ff70
push 1
push 0x22
mov ecx, esi
call fcn.00406760
test eax, eax
jle 0x40ffb5
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00404180
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401b60
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.00401350
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
xor eax, eax
test ecx, ecx
jle 0x40ff20
test eax, eax
js 0x40ff66
cmp eax, ecx
jg 0x40ff66
cmp word [edx], 0x20
je 0x40ffb5
inc eax
add edx, 2
cmp eax, ecx
jl 0x40ff06
push 1
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.00409bd0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401b60
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.00401350
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.00404180
mov byte [ebp - 4], 3
jmp 0x40ffa2
push 0x80070057
call fcn.00401090
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x40ffb5
push 0x20
push eax
call fcn.00510bc0
add esp, 8
test eax, eax
je 0x40ffb5
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x40ffb5
push eax
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.00404180
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00401b60
lea ecx, [ebp - 0x220]
call fcn.00401350
lea ecx, [ebp - 0x22c]
call fcn.00401350
mov eax, 1
jmp 0x410015
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41000c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41000c
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.00401370
xor eax, eax
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.005105ba
mov esp, ebp
pop ebp
ret