Function at 0x407390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449976
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x45e680]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e680]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x454]
mov eax, dword [esp + 0x458]
xor ebx, ebx
lea esi, [esp + 0x238]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bx
jne 0x4073f0
lea edi, [esp + 0x238]
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x407410
mov ecx, dword [0x450f80]
mov dword [edi], ecx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407426
lea edi, [esp + 0x238]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x407440
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x1c]
push edx
push 0x20019
mov ecx, eax
push ebx
lea eax, [esp + 0x244]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4075f3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.Description
mov edi, 0x104
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], edi
call esi
cmp eax, ebx
jne 0x4075f3
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404a10
mov dword [esp + 0x44c], ebx
mov eax, dword [ebp + 0xd0]
or ebp, 0xffffffff
cmp eax, ebx
je 0x407541
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x407545
push eax
push ecx
call fcn.0042f96f
add esp, 8
cmp eax, ebx
je 0x407541
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
cmp eax, ebp
je 0x407545
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.ServiceName
push ecx
mov dword [esp + 0x38], edi
call esi
cmp eax, ebx
je 0x407554
mov dword [esp + 0x44c], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x4075e5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44c], ebp
lea eax, [ecx - 0x10]
jmp 0x4075dd
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404a10
lea ecx, [esp + 0x28]
mov byte [esp + 0x44c], 1
call fcn.00409a70
mov byte [esp + 0x44c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
add ecx, 0xd4
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4075b0
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x34]
push edx
call fcn.004048e0
mov dword [esp + 0x44c], ebp
mov eax, dword [esp + 0x18]
mov byte [esp + 0x17], 1
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4075f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0042f892
add esp, 0x43c
ret 8