Function at 0x404840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x439520
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44c610]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push 0x44183c
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call fcn.00401790
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.Applicationsiexplore.exe_shellopencommand_
push SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4048d9
call fcn.0040fdf8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4048bf
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00401850
jmp 0x404ac3
push 0xff
call fcn.00407e1a
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [esp + 0x24]
push edx
push ebx
push 0x44183c
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40494c
call fcn.0040fdf8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404932
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00401850
jmp 0x404ac3
push esi
lea ecx, [esp + 0x14]
push 0x442278
push ecx
call fcn.00403770
push esi
call fcn.00407e25
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jl 0x404a43
push 0x44237c
push eax
call fcn.0042589a
mov ecx, eax
mov eax, dword [esp + 0x18]
add esp, 8
cmp ecx, ebx
je 0x404a43
sub ecx, eax
sar ecx, 1
jne 0x404a43
lea edx, [eax + 2]
jmp 0x4049b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4049b0
sub eax, edx
sar eax, 1
dec eax
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00404b00
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.004038d0
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jge 0x404a10
or eax, 0xffffffff
jmp 0x404a2d
push 0x44237c
push eax
call fcn.0042589a
add esp, 8
cmp eax, ebx
jne 0x404a27
or eax, 0xffffffff
jmp 0x404a2d
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404b80
mov byte [esp + 0x2c], 4
jmp 0x404a80
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jge 0x404a4f
or eax, 0xffffffff
jmp 0x404a6c
push 0x44237c
push eax
call fcn.0042589a
add esp, 8
cmp eax, ebx
jne 0x404a66
or eax, 0xffffffff
jmp 0x404a6c
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404b80
mov byte [esp + 0x2c], 5
push eax
lea ecx, [esp + 0x14]
call fcn.004038d0
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404aae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403970
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret