Function at 0x100210f8
Capabilities:
Create process on windows
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100cd61b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10130aa4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0x218]
test byte [ebp + 0x220], 1
mov esi, dword [ebp + 0x214]
push 0
pop ecx
movzx eax, al
cmove ecx, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x20]
push esi
call fcn.10001719
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push 0x100e5554
mov dword [ebp - 4], ebx
call fcn.10001719
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x20]
call fcn.1000186b
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], bl
test ecx, ecx
je 0x1002118a
call fcn.10001b13
cmp byte [ebp + 0x21c], 0
je 0x10021501
push 0x208
lea eax, [ebp]
push ebx
push eax
call fcn.100621d0
add esp, 0xc
lea ecx, [ebp - 0x18]
push esi
call fcn.10001719
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x100211c6
mov ecx, dword [ebp - 0x18]
call fcn.1001f0ee
jmp 0x100211c8
mov eax, ebx
push eax
push str.wsdetect.dll
call dword [sym.imp.imagehlp.dll_ImageLoad]
mov ecx, eax
test ecx, ecx
jne 0x10021279
mov esi, ebx
push str.Unexpected_machine_type_from__
lea ecx, [ebp - 0x14]
call fcn.1000dcc0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
push str.___machine_type:
lea ecx, [ebp - 0x10]
call fcn.1000dcc0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10021226
call fcn.10001b13
push 0x12
pop eax
mov word [ebp - 0x34], ax
mov word [ebp - 0x2c], si
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002125d
call fcn.10001b13
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100214d7
mov eax, dword [esi]
jmp 0x100214d9
mov eax, dword [ecx + 0xc]
push ecx
movzx edi, word [eax + 4]
call dword [sym.imp.imagehlp.dll_ImageUnload]
test eax, eax
je 0x100211de
mov eax, 0x8664
mov esi, edi
cmp ax, di
jne 0x100212ad
mov esi, 0x104
lea eax, [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x100212c9
mov eax, 0x14c
cmp ax, di
jne 0x100211e0
lea esi, [eax - 0x48]
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
push str._regsvr32.exe
lea eax, [ebp]
push esi
push eax
call fcn.1008aa23
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.100621d0
add esp, 0x18
mov dword [ebp - 0x70], esi
lea ecx, [ebp - 0x24]
push 0x100e5780
call fcn.10001719
cmp byte [ebp - 0x10], 0
mov byte [ebp - 4], 7
jne 0x10021330
push 0x100e5788
lea ecx, [ebp - 0x14]
call fcn.10001719
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x24]
call fcn.1000186b
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10021330
call fcn.10001b13
push 0x100e5790
lea ecx, [ebp - 0x14]
call fcn.10001719
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x24]
call fcn.1000186b
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x1002135d
call fcn.10001b13
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000186b
push 0x100e5794
lea ecx, [ebp - 0x14]
call fcn.10001719
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x24]
call fcn.1000186b
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x10021396
call fcn.10001b13
mov edi, dword [ebp - 0x24]
lea eax, [ebp]
xor esi, esi
mov dword [ebp - 0x64], 0x100e5798
inc esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x6c], 0x40
test edi, edi
je 0x100213be
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
jmp 0x100213c1
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x1c], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100213f9
cmp dword [ebp - 0x38], 0
je 0x100213f9
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x100214cd
push str.regsvr32.exe_error__
lea ecx, [ebp - 0x14]
call fcn.1000dcc0
lea eax, [ebp]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x10]
call fcn.10001719
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x10021440
call fcn.10001b13
push str.___error_code:
lea ecx, [ebp - 0x10]
call fcn.1000dcc0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10021469
call fcn.10001b13
push 0x13
pop eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100214a2
call fcn.10001b13
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x100214b7
mov eax, dword [esi]
jmp 0x100214b9
mov eax, ebx
push eax
call fcn.100333b3
pop ecx
test esi, esi
je 0x100214cf
mov ecx, esi
call fcn.10001b13
jmp 0x100214cf
mov ebx, esi
test edi, edi
je 0x100214eb
mov ecx, edi
jmp 0x100214e6
mov eax, ebx
push eax
call fcn.100333b3
pop ecx
test esi, esi
je 0x100214eb
mov ecx, esi
call fcn.10001b13
cmp dword [ebp - 0x18], 0
je 0x100214f9
mov ecx, dword [ebp - 0x18]
call fcn.10001b13
mov edi, dword [ebp - 0x20]
jmp 0x1002163f
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x1002150c
mov eax, dword [edi]
jmp 0x1002150e
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x100215b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_load__
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.1000dcc0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x18]
call fcn.1000186b
push str.___error_code
lea ecx, [ebp - 0x10]
call fcn.1000dcc0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x18]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002156d
call fcn.10001b13
push 0x13
pop eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d194
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x13
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100215a3
call fcn.10001b13
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x18]
jmp 0x1002160d
cmp byte [ebp - 0x10], 0
mov ecx, str.DllUnregisterServer
mov eax, str.DllRegisterServer
cmove eax, ecx
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002162b
push str.Failed_to_get_proc_address:
lea ecx, [ebp - 0x1c]
call fcn.1000dcc0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x14
call fcn.1000dcc0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000186b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002160a
call fcn.10001b13
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10021615
mov eax, dword [esi]
jmp 0x10021617
mov eax, ebx
push eax
call fcn.100333b3
pop ecx
test esi, esi
je 0x1002163f
mov ecx, esi
call fcn.10001b13
jmp 0x1002163f
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
xor esi, esi
lea ebx, [esi + 1]
test edi, edi
je 0x1002164a
mov ecx, edi
call fcn.10001b13
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1005e187
add ebp, 0x20c
leave
ret