Function at 0x40dc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a902
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x567680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
or edi, 0xffffffff
cmp dword [0x568b50], 0
mov dword [ebp - 4], 1
je 0x40ddeb
cmp dword [0x568b54], 0
je 0x40ddeb
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004026d0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dcfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00422880
push dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.004027d0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004026d0
mov edx, dword [ebp - 0x14]
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 0x40dd74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00422880
push dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
call fcn.004027d0
mov edx, dword [ebp - 0x10]
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 0x40ddcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ddeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
xor ebx, ebx
cmp byte [0x568b58], bl
mov ecx, 0x5671f0
sete bl
add ebx, 0x80000001
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 6
je 0x40dea2
call fcn.0040fda0
test al, al
jne 0x40de3d
mov eax, dword [0x568ad4]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [0x568ad4], eax
cmp byte [0x56203c], 0
jne 0x40dea2
mov eax, dword [0x568bc0]
cmp dword [eax - 0xc], 0
jne 0x40de58
mov esi, SysReAllocStringLen
jmp 0x40dea5
push 0x51a434
lea eax, [ebp - 0x14]
push 0x568bc0
push eax
mov esi, SysReAllocStringLen
call fcn.00402b60
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004026d0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dea5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40dea5
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 8
cmp dword [eax - 0xc], 0
je 0x40deea
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push 0x51a434
push eax
call fcn.00402d00
add esp, 0xc
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
mov ebx, 1
jmp 0x40df06
push 0x51707c
lea ecx, [ebp - 0x34]
call fcn.00401c30
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xa
mov ebx, 2
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov dword [ebp - 0x18], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.Software_
mov dword [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x40e17c
movzx edi, ax
push 0
push edi
call fcn.00403090
add esp, 8
test eax, eax
je 0x40df4f
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.004082e0
or edi, 0xffffffff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0xc
call fcn.00402aa0
push 0x568b98
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402aa0
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402aa0
add esp, 0x24
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dfd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
test bl, 2
je 0x40e01c
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e01c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
test bl, 1
je 0x40e041
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20019
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push esi
call fcn.0040e350
test eax, eax
jne 0x40e29c
xor ecx, ecx
mov eax, 0x400
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e8060
push 0x800
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x10], ebx
call fcn.004eaaf0
mov edx, dword [0x568ad4]
add esp, 0x10
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xd
idiv ecx
cmp edx, 9
jne 0x40e105
mov edi, dword [0x568ad4]
mov eax, edi
cdq
sub eax, edx
xor ecx, ecx
mov ebx, eax
sar ebx, 1
mov esi, 0xda
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
test ebx, ebx
jle 0x40e0f7
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
test edi, edi
jle 0x40e0e9
mov eax, edx
mov ecx, edi
nop
add esi, eax
dec eax
dec ecx
jne 0x40e0e0
mov ecx, dword [ebp - 0x14]
add edx, ecx
dec ebx
jne 0x40e0d7
mov ebx, dword [ebp - 0x18]
mov edi, dword [0x568ad4]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, esi
jl 0x40e0c5
mov ebx, dword [ebp - 0x10]
or edi, 0xffffffff
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x800
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e157
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x40e135
cmp eax, 2
jne 0x40e157
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
test ecx, ecx
je 0x40e193
test ebx, ebx
je 0x40e18e
test bl, 1
jne 0x40e154
mov eax, ebx
shr eax, 1
cmp word [ecx + eax*2 - 2], 0
je 0x40e193
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x40e167
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x28], esi
push ebx
mov dword [ebp - 0x24], 0
call fcn.004e8ec3
add esp, 4
jmp 0x40e29f
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.004027d0
jmp 0x40df52
xor eax, eax
mov word [ecx], ax
shr ebx, 1
test esi, esi
je 0x40e1a8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x28], esi
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ecx + ebx*2], ax
test ecx, ecx
je 0x40e1cf
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1c0
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x30]
push ebx
call fcn.0040b9d0
push ebx
call fcn.004e8ec3
add esp, 4
cmp dword [0x568b50], 0
je 0x40e298
cmp dword [0x568b54], 0
je 0x40e298
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
push dword [ebx]
mov byte [ebp - 4], 0x15
call fcn.00401b10
mov ecx, dword [0x568b50]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x16
call fcn.00421fa0
push 0x51707c
push dword [0x568b78]
lea ecx, [ebp - 0x10]
call fcn.00408690
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.004026d0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x15
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e278
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x14
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e298
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x40e2a1
mov esi, dword [ebp - 0x28]
xor bl, bl
mov edx, dword [ebp - 0x2c]
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 0x40e2c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40e2cc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e2ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
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 0x40e30c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40e32d
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 esp, ebp
pop ebp
ret