Function at 0x40a780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5061d2
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x565680]
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 - 0x874], eax
or esi, 0xffffffff
cmp dword [0x566ba0], 0
mov dword [ebp - 4], 0
je 0x40a886
cmp dword [0x566ba4], 0
je 0x40a886
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x854]
push 0x566cec
push eax
call fcn.00402a20
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004026b0
mov edx, dword [ebp - 0x854]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a823
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x850], eax
mov ecx, dword [0x566ba4]
push 0
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0041f8f0
push dword [ebp - 0x850]
lea ecx, [ebp + 8]
call fcn.004027b0
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a886
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5651b8]
xor ebx, ebx
cmp byte [0x566b9c], bl
mov ecx, 0x5651b8
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x860], eax
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
je 0x40a923
cmp byte [0x56002c], 0
jne 0x40a923
mov eax, dword [0x566ce4]
cmp dword [eax - 0xc], 0
jne 0x40a8d2
mov ebx, SysReAllocStringLen
jmp 0x40a923
push 0x519f08
lea eax, [ebp - 0x854]
push 0x566ce4
push eax
mov ebx, SysStringLen
call fcn.00402ae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 4
call fcn.004026b0
mov edx, dword [ebp - 0x854]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a923
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
mov byte [ebp - 4], 5
call fcn.0048c060
test al, al
jne 0x40a96c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84c], eax
mov eax, str.Software_
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x40a9b3
movzx esi, ax
push 0
push esi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x40a9c3
push esi
push eax
lea ecx, [ebp - 0x84c]
call fcn.004073a0
jmp 0x40a9c3
push str.Software_
lea ecx, [ebp - 0x84c]
call fcn.004027b0
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x858]
push eax
mov byte [ebp - 4], 7
call fcn.00402a20
push 0x566ce8
push eax
lea eax, [ebp - 0x85c]
push eax
mov byte [ebp - 4], 8
call fcn.00402a20
push 0x519f08
push eax
lea eax, [ebp - 0x850]
push eax
mov byte [ebp - 4], 9
call fcn.00402ae0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x854]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402a20
add esp, 0x30
lea ecx, [ebp - 0x870]
push 1
push dword [eax]
push ebx
call fcn.0040bb90
mov edx, dword [ebp - 0x854]
test eax, eax
setne byte [ebp - 0x845]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aa60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aa83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x85c]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aaa6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x858]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aac9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x84c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aaec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x845], 0
je 0x40ab07
mov eax, dword [ebp - 0x870]
mov byte [ebp - 0x845], 0
jmp 0x40adc4
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x864], 0x400
call fcn.004e67c0
mov eax, dword [ebp - 0x870]
add esp, 0xc
xor esi, esi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x85c], esi
test eax, eax
je 0x40ab71
cmp eax, 0x103
jne 0x40ad44
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x84c], esi
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x40abb9
movzx edi, ax
push 0
push edi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x40abea
push edi
push eax
lea ecx, [ebp - 0x84c]
call fcn.004073a0
jmp 0x40abe4
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abc2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00409940
mov esi, dword [ebp - 0x84c]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0xc
je 0x40ad07
call fcn.0040ca90
test al, al
jne 0x40ac24
mov eax, dword [0x566ac0]
xor edi, edi
test eax, eax
je 0x40ac1e
lea esp, [esp]
mov ecx, eax
cdq
and ecx, 1
sub eax, edx
add edi, ecx
sar eax, 1
jne 0x40ac10
mov dword [0x566ac0], edi
cmp dword [0x566ba0], 0
je 0x40acef
cmp dword [0x566ba4], 0
je 0x40acef
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x850], eax
push esi
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 0xd
call fcn.00401a80
mov ecx, dword [0x566ba0]
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x854]
push eax
mov byte [ebp - 4], 0xe
call fcn.0041eff0
push 0x51781c
push dword [0x566cec]
lea ecx, [ebp - 0x850]
call fcn.00407680
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x84c]
call fcn.004026b0
mov edx, dword [ebp - 0x854]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40accc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40acef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x874]
lea eax, [ebp - 0x84c]
push eax
call fcn.00420910
mov esi, dword [ebp - 0x84c]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x864], 0x400
call fcn.004e67c0
add esi, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ad44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [0x566ac0]
lea ecx, [edi + 1]
lea eax, [edi + 2]
imul eax, ecx
imul eax, edi
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 4
jne 0x40ad97
xor ebx, ebx
mov eax, edi
cdq
lea esi, [ebx + 1]
idiv esi
mov ecx, edi
sub ecx, ebx
imul ecx, edx
lea eax, [ecx + edi]
push eax
push 0x519f70
call fcn.004e6944
mov ebx, esi
add esp, 8
cmp ebx, 0xd
jge 0x40ad94
mov edi, dword [0x566ac0]
jmp 0x40ad65
or ebx, 0xffffffff
cmp dword [ebp - 0x858], 0
mov eax, dword [ebp - 0x870]
mov esi, dword [ebp - 0x85c]
je 0x40ab37
test eax, eax
je 0x40adbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov byte [ebp - 0x845], 1
test eax, eax
je 0x40adcf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x860]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40adf2
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], ebx
dec ebx
test ebx, ebx
jg 0x40ae13
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x845]
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.004e52a4
mov esp, ebp
pop ebp
ret