Function at 0x4146c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f62a
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4c9070]
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 esi, ecx
mov dword [ebp - 0x238], esi
mov eax, dword [esi + 0xb2c]
sub eax, dword [esi + 0xb28]
cmp eax, 4
jb 0x414ea1
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0xf013f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x41475e
push 0
lea eax, [ebp - 0x244]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414ea1
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
call fcn.0040b800
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 1
mov edi, dword [esi + 0xb2c]
cmp edi, dword [esi + 0xb28]
je 0x414952
lea eax, [edi - 4]
mov dword [ebp - 0x224], eax
mov ebx, dword [ebp - 0x240]
lea ecx, [ebp - 0x240]
push eax
call fcn.0040c510
mov esi, eax
cmp esi, dword [ebp - 0x240]
je 0x4147f0
lea eax, [esi + 0x10]
push eax
push dword [ebp - 0x224]
call fcn.0040c590
test al, al
je 0x4147f6
mov esi, dword [ebp - 0x240]
cmp esi, ebx
jne 0x414928
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004091c0
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 3
jge 0x414833
push 1
push 0x4a1b6c
lea ecx, [ebp - 0x21c]
call fcn.00403730
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
push ecx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x240]
call fcn.0041f580
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp - 0x21c]
cmp eax, ebx
jae 0x4148c0
mov ecx, dword [ebp - 0x234]
cmp ecx, eax
ja 0x4148c0
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x248], eax
cmp ebx, dword [ebp - 0x22c]
jne 0x4148a4
push ecx
lea ecx, [ebp - 0x234]
call fcn.0041d240
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4148fb
mov ecx, dword [ecx + eax*4]
sub ecx, 0x10
jmp 0x4148f1
cmp ebx, dword [ebp - 0x22c]
jne 0x4148da
push ecx
lea ecx, [ebp - 0x234]
call fcn.0041d240
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 4], 4
test ebx, ebx
je 0x4148fb
lea ecx, [esi - 0x10]
call fcn.004091c0
add eax, 0x10
mov dword [ebx], eax
add ebx, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x230], ebx
add esi, 0xfffffff0
mov dword [ebp - 0x220], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41492e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41492e
mov ebx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x238]
sub edi, 4
mov eax, dword [ebp - 0x224]
sub eax, 4
mov dword [ebp - 0x224], eax
cmp edi, dword [ecx + 0xb28]
jne 0x4147c1
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x414967
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 1
push 0x4a6194
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push str._s_d
push eax
mov dword [ebp - 0x248], 0
call fcn.00409370
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], 2
push 0
push eax
call fcn.0046ea70
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x24c]
add esp, 0x1c
mov dword [ebp - 0x24c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push edi
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414d5b
call fcn.00404a20
test eax, eax
je 0x41495d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
shr eax, 0x10
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x414a4e
lea eax, [ebp - 0x218]
movzx esi, ax
mov ecx, esi
call fcn.00403d20
test eax, eax
je 0x414a79
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403e10
jmp 0x414a79
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a57
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004046a0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x240]
lea ecx, [ebp - 0x240]
push eax
call fcn.0040c510
mov esi, eax
mov eax, dword [ebp - 0x240]
cmp esi, eax
je 0x414abb
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040c590
test al, al
je 0x414abd
mov eax, dword [ebp - 0x240]
mov esi, eax
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414adb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, edi
jne 0x414ce5
call fcn.00404a20
test eax, eax
je 0x41495d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x228]
test edi, edi
jne 0x414b31
lea eax, [ebp - 0x218]
movzx esi, ax
mov ecx, esi
call fcn.00403d20
test eax, eax
je 0x414b62
push esi
push eax
lea ecx, [ebp - 0x224]
call fcn.00403e10
jmp 0x414b62
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414b40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.004046a0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x224]
push dword [ebp - 0x228]
push eax
push ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x240]
call fcn.0041f580
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414ba8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404a20
test eax, eax
je 0x41495d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov byte [ebp - 4], 9
test edi, edi
jne 0x414bf0
lea eax, [ebp - 0x218]
movzx edi, ax
mov ecx, edi
call fcn.00403d20
test eax, eax
je 0x414c28
push edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403e10
jmp 0x414c22
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414c00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004046a0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
cmp eax, ebx
jae 0x414c85
mov ecx, eax
mov eax, dword [ebp - 0x234]
cmp eax, ecx
ja 0x414c85
mov edi, ecx
sub edi, eax
sar edi, 2
cmp ebx, dword [ebp - 0x22c]
jne 0x414c69
push ecx
lea ecx, [ebp - 0x234]
call fcn.0041d240
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x414cc0
mov ecx, dword [eax + edi*4]
sub ecx, 0x10
jmp 0x414cb6
cmp ebx, dword [ebp - 0x22c]
jne 0x414c9f
push ecx
lea ecx, [ebp - 0x234]
call fcn.0041d240
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x414cc0
lea ecx, [esi - 0x10]
call fcn.004091c0
add eax, 0x10
mov dword [ebx], eax
add ebx, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x230], ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414ce5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x220]
push esi
push 0x4a6194
push str._s_d
push eax
call fcn.00409370
push 0x208
lea eax, [ebp - 0x218]
inc esi
push 0
push eax
mov dword [ebp - 0x238], esi
call fcn.0046ea70
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x24c]
add esp, 0x1c
mov dword [ebp - 0x24c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push edi
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4149f7
sub ebx, dword [ebp - 0x234]
xor esi, esi
sar ebx, 2
test ebx, ebx
jle 0x414e40
nop
lea eax, [esi + 1]
push eax
push 0x4a6194
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push str._s_d
push eax
call fcn.00409370
add esp, 0x10
cmp ebx, esi
jbe 0x414ec7
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + esi*4]
sub ecx, 0x10
call fcn.004091c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 0xd
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x414dd4
push edi
lea ecx, [ebp - 0x238]
call fcn.00404470
mov esi, dword [ebp - 0x238]
lea eax, [edi + edi]
mov edi, dword [ebp - 0x220]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi - 8]
push esi
call fcn.00474f18
add esp, 8
test eax, eax
js 0x414ebd
cmp eax, dword [esi - 8]
jg 0x414ebd
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414e32
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
cmp esi, ebx
jl 0x414d70
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x414e5c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x414e6d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x234]
call fcn.0041d1e0
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x240]
push eax
push dword [eax]
lea eax, [ebp - 0x228]
push eax
call fcn.0040b260
push dword [ebp - 0x240]
call fcn.0046be2a
add esp, 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.0046be2f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404ad0
push str.invalid_vector_T__subscript
call fcn.0046a50f
int3