Function at 0x40e170
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ecfe
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5d2fec]
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
push str.ck_Wkb
push 0x3ee
push dword [0x5dd61c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x240], VariantCopy
mov dword [ebp - 0x22c], 0
call fcn.00406840
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
push 0x5af8f0
mov dword [ebp - 0x228], 0
call fcn.00406840
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
push 0x20119
push 0
push 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], 0
or ebx, 0xffffffff
nop dword [eax]
test eax, eax
jne 0x40e7f1
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x230], 0x20a
call fcn.00417ce3
test eax, eax
je 0x40e8c6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40e7b0
lea eax, [ebp - 0x21c]
inc edi
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x258], edi
push 0x5af300
push eax
call fcn.00406ff0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00551910
add esp, 0x18
mov dword [ebp - 0x230], 0x20a
lea ecx, [ebp - 0x284]
call fcn.0040c890
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00405ab0
push str._shellopen
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push eax
call fcn.00406a20
add esp, 0x18
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e34d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x238], ecx
call fcn.004069a0
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x248]
call fcn.004123f0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov esi, dword [ebp - 0x280]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40e3d7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40e3c8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40e3c8
push edx
call fcn.00406c80
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40e3ba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x280], eax
jmp 0x40e3d7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x280]
call fcn.00406bd0
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e3f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x284]
add edi, 0xfffffff0
lea ecx, [esi - 0x10]
cmp ecx, edi
je 0x40e463
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40e451
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40e451
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x238], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40e446
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebp - 0x284], eax
jmp 0x40e460
push dword [esi - 0xc]
lea ecx, [ebp - 0x284]
push esi
call fcn.00406bd0
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jge 0x40e46e
or eax, 0xffffffff
jmp 0x40e489
push 0x5b1a18
push esi
call fcn.00550fb4
add esp, 8
test eax, eax
jne 0x40e485
or eax, 0xffffffff
jmp 0x40e489
sub eax, esi
sar eax, 1
cmp dword [esi - 0xc], 6
jge 0x40e497
test eax, eax
je 0x40e721
mov eax, dword [ebp - 0x280]
mov ecx, 0x5af8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e4c8
test dx, dx
je 0x40e4c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e4c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e4a2
xor eax, eax
jmp 0x40e4cd
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40e721
mov ecx, 0x5b1a1c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e507
test dx, dx
je 0x40e503
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e507
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e4e1
xor eax, eax
jmp 0x40e50c
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40e721
mov ecx, str.regfile
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e546
test dx, dx
je 0x40e542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e546
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e520
xor eax, eax
jmp 0x40e54b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40e721
mov ecx, str.piffile
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e586
test dx, dx
je 0x40e582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e586
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e560
xor eax, eax
jmp 0x40e58b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40e721
mov eax, str.scrfile
mov ecx, esi
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40e5c6
test dx, dx
je 0x40e5c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40e5c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x40e5a0
xor eax, eax
jmp 0x40e5cb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x40e721
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x268]
call fcn.00406cf0
push ecx
mov ecx, esp
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x238], ecx
call fcn.004069a0
lea ecx, [ebp - 0x24c]
call fcn.004031f0
add esp, 4
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 8
call fcn.00406cf0
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e63e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
call fcn.004136a0
push 4
push 0x5afaac
lea ecx, [ebp - 0x270]
call fcn.00406bd0
push 0x5af8ec
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00406a20
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00405ab0
add esp, 0x18
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xa
call fcn.00406cf0
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e6bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e6e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x260]
call fcn.00406cf0
sub esp, 0x2c
lea eax, [ebp - 0x284]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
cmp dword [0x5dd608], 0
jne 0x40e784
lea ecx, [ebp - 0x220]
call fcn.004070b0
jmp 0x40e742
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e742
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.0040ca30
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x230]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40e2a1
jmp 0x40e7b0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e7a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x284]
call fcn.0040ca30
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
cmp dword [0x5dd608], 0
mov eax, ebx
jne 0x40e8b2
lock xadd dword [esi + 0xc], eax
dec eax
cmp dword [ebp - 0x23c], 1
je 0x40e8b8
test eax, eax
jg 0x40e7f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x22
push str.HKEY_CURRENT_USERSoftwareClasses
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x240], VariantCopy
call fcn.00406bd0
push 0x11
push str.SoftwareClasses_
lea ecx, [ebp - 0x228]
call fcn.00406bd0
lea eax, [ebp - 0x234]
push eax
push 0x20119
push 0
push str.SoftwareClasses
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x23c]
inc edx
mov dword [ebp - 0x23c], edx
cmp edx, 1
jle 0x40e230
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e874
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e896
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0054e73a
mov esp, ebp
pop ebp
ret
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e853
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e853
push 0x80004005
call fcn.00407010
int3