Function at 0x100164a0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081901
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x180
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x17c], eax
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x18c], 0
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x180]
mov dword [ebp - 0x180], 0
call fcn.10016080
add esp, 4
test eax, eax
je 0x1001652c
cmp dword [ebp - 0x180], 0
je 0x10016948
inc dword [esi]
jmp 0x10016948
inc dword [esi]
mov esi, dword [ebp - 0x17c]
inc dword [edi]
mov ecx, dword [esi]
call fcn.10016980
push esi
mov edx, str.XDImageShow.
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.1001ace0
add esp, 4
mov dword [ebp - 0x18c], 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x188]
mov edx, dword [esi]
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
call fcn.10016ba0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x184]
mov edx, dword [esi]
call fcn.10016c40
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x180]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.1001ab90
push 0x100079b0
push 2
push 4
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 4
push eax
call fcn.100537c2
mov eax, dword [ebp - 0x40]
or edi, 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x184], ecx
cmp eax, ecx
je 0x10016853
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
sub esp, 0x14
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push dword [eax]
push SysReAllocString
call fcn.10001820
mov esi, dword [ebp - 0x34]
test eax, eax
jne 0x10016648
test edi, edi
je 0x10016648
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016620
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.ProgId
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x1001665a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
mov eax, dword [0x100a4130]
mov dword [ebp - 0x30], 0
test al, 1
jne 0x100166ec
or eax, 1
mov dword [0x100a4130], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.10055b90
add esp, 0xc
mov dword [ebp - 0x178], 0x11c
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100166be
lea ecx, [ebp - 0x178]
push ecx
call eax
mov eax, dword [ebp - 0x174]
cmp eax, 7
jae 0x100166e0
cmp eax, 6
jb 0x100166d7
cmp dword [ebp - 0x170], 2
jae 0x100166e0
xor eax, eax
mov dword [0x100a4134], eax
jmp 0x100166f1
mov eax, 1
mov dword [0x100a4134], eax
jmp 0x100166f1
mov eax, dword [0x100a4134]
test eax, eax
je 0x1001682f
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
push dword [ebp - 0x17c]
mov edx, 0x10093674
call fcn.1001ace0
add esp, 4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [eax]
call fcn.100219a0
mov byte [ebp - 4], 6
add esp, 4
mov edx, dword [ebp - 0x190]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016768
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 7
lea esi, [ebp - 0x58]
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x28]
cmova esi, dword [ebp - 0x58]
sub esp, 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [eax]
push SysReAllocString
call fcn.10001820
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x100167d8
test esi, esi
je 0x100167d8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100167b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.Hash
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x100167ea
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], 0
cmp ecx, 7
jbe 0x1001682f
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016825
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016970
push ecx
push edx
call fcn.10053bf1
add esp, 8
mov eax, dword [ebp - 0x180]
add eax, 4
mov dword [ebp - 0x180], eax
cmp eax, dword [ebp - 0x184]
jne 0x100165e4
mov esi, dword [ebp - 0x17c]
or edi, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov esi, dword [esi]
mov byte [ebp - 4], 9
mov dword [ebp - 0x17c], 0
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x10016966
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push str.nWithProg
push esi
add eax, 0x10
mov dword [ebp - 0x18c], 5
push str.tVersionExplorerFile
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x17c]
push str.SoftwareMicrosoftWindowsCurren_sExts._sOpe_sids
push eax
call fcn.10007310
mov esi, dword [ebp - 0x17c]
lea ecx, [ebp - 0x28]
push esi
push SysReAllocString
call fcn.10001820
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100168ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x15]
push 0
push eax
push 0
push 0
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x10016921
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call fcn.1000c4b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10016948
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
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.10001410
call fcn.10058b57
int3