Function at 0x409c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500332
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x559680]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x83c], eax
or edi, 0xffffffff
cmp dword [0x55ab3c], 0
mov dword [ebp - 4], 0
je 0x409d96
cmp dword [0x55ab40], 0
je 0x409d96
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x81c]
push 0x55abfc
push eax
call fcn.00402920
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004025b0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov ecx, dword [0x55ab40]
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0041d8c0
push dword [ebp - 0x818]
lea ecx, [ebp + 8]
call fcn.004026b0
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5591b8]
xor ebx, ebx
cmp byte [0x55ab44], bl
mov ecx, 0x5591b8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x828], eax
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
je 0x409e33
cmp byte [0x55402c], 0
jne 0x409e33
mov eax, dword [0x55abf4]
cmp dword [eax - 0xc], 0
jne 0x409de2
mov ebx, SysReAllocStringLen
jmp 0x409e33
push 0x50e4b0
lea eax, [ebp - 0x81c]
push 0x55abf4
push eax
mov ebx, SysStringLen
call fcn.004029e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 4
call fcn.004025b0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409e33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, str.Software_
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x409e9c
movzx esi, ax
push 0
push esi
call fcn.00402e50
add esp, 8
test eax, eax
je 0x409eac
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.00406a90
jmp 0x409eac
push str.Software_
lea ecx, [ebp - 0x814]
call fcn.004026b0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 7
call fcn.00402920
push 0x55abf8
push eax
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 8
call fcn.00402920
push 0x50e4b0
push eax
lea eax, [ebp - 0x820]
push eax
mov byte [ebp - 4], 9
call fcn.004029e0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402920
add esp, 0x30
lea ecx, [ebp - 0x838]
push 1
push dword [eax]
push ebx
call fcn.0040abf0
mov edx, dword [ebp - 0x81c]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409f42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x820]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409f65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x824]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409fab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409fce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x409fdf
mov eax, dword [ebp - 0x838]
xor bl, bl
jmp 0x40a260
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004e0ad0
mov ebx, dword [ebp - 0x838]
add esp, 0xc
mov dword [ebp - 0x824], 0
jmp 0x40a020
mov esi, dword [0x55aac0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 2
jne 0x40a07a
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ddf94
push eax
call fcn.004e00c3
add esp, 8
mov esi, dword [ebp - 0x824]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
inc esi
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], esi
test ebx, ebx
je 0x40a0bd
cmp ebx, 0x103
jne 0x40a241
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x40a2cd
movzx ebx, ax
push 0
push ebx
call fcn.00402e50
add esp, 8
test eax, eax
je 0x40a10d
push ebx
push eax
lea ecx, [ebp - 0x814]
call fcn.00406a90
mov esi, dword [ebp - 0x814]
mov ebx, dword [ebp - 0x820]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0xc
je 0x40a204
cmp dword [0x55ab3c], 0
je 0x40a1ec
cmp dword [0x55ab40], 0
je 0x40a1ec
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push esi
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0xd
call fcn.00401a50
mov ecx, dword [0x55ab3c]
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 0xe
call fcn.0041cfe0
push 0x5122d0
push dword [0x55abfc]
lea ecx, [ebp - 0x818]
call fcn.00406d70
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x814]
call fcn.004025b0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a1c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a1ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x83c]
lea eax, [ebp - 0x814]
push eax
call fcn.0041e570
mov esi, dword [ebp - 0x814]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004e0ad0
add esi, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a241
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
mov ebx, dword [ebp - 0x838]
je 0x40a020
mov eax, ebx
test eax, eax
je 0x40a25e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov bl, 1
test eax, eax
je 0x40a26b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x828]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a28e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a2af
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.004df4f4
mov esp, ebp
pop ebp
ret
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00409230
mov esi, dword [ebp - 0x814]
jmp 0x40a113