Function at 0x41471d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0041c7ab
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
cmp dword [eax + 0xc], ebx
jle 0x414a14
push edi
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.0041f2e9
mov edi, eax
lea ecx, [ebp - 0x30]
lea esi, [edi + 4]
push esi
call fcn.0041c87f
cmp edi, ebx
je 0x414770
mov ecx, esi
call fcn.0041c8e1
push edi
call fcn.004258de
pop ecx
lea eax, [ebp - 0x3a8]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
push eax
call fcn.0041c87f
push 1
push ebx
push 0x42cc6c
lea ecx, [ebp - 0x48]
call fcn.0041d1c1
mov edi, eax
cmp edi, 0xffffffff
je 0x4147b1
lea ecx, [ebp - 0x48]
call fcn.0041d704
mov byte [eax + edi], bl
lea ecx, [ebp - 0x48]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x30]
push 4
add eax, 0xfffffffc
lea ecx, [ebp - 0x30]
push eax
call fcn.0041d67b
push eax
lea ecx, [ebp - 0x24]
call fcn.0041c87f
lea ecx, [ebp - 0x24]
call fcn.0041d74e
push 1
push str..TLB
lea ecx, [ebp - 0x24]
call fcn.0041cbe0
test al, al
jne 0x414934
push 1
push str..OLB
lea ecx, [ebp - 0x24]
call fcn.0041cbe0
test al, al
jne 0x414934
push 1
push str..EXE
lea ecx, [ebp - 0x24]
call fcn.0041cbe0
test al, al
je 0x4148aa
push 0x42d1f8
lea ecx, [ebp - 0x3c]
call fcn.0041c81b
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0041caab
push ebx
push str.___RegServer
lea ecx, [ebp - 0x3c]
call fcn.0041ca2d
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.00425010
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x9c], esi
call fcn.00425010
add esp, 0x18
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d704
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x3c]
call fcn.0041c8e1
jmp 0x4149dc
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
lea ecx, [ebp - 0x30]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x4148ea
cmp dword [ebp - 0x18], ebx
jbe 0x4148d9
push ebx
push 0x42d144
lea ecx, [ebp - 0x18]
call fcn.0041ca2d
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041caab
inc dword [ebp - 4]
jmp 0x414929
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x414900
call eax
test eax, eax
je 0x414922
cmp dword [ebp - 0x18], ebx
jbe 0x414913
push ebx
push 0x42d144
lea ecx, [ebp - 0x18]
call fcn.0041ca2d
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041caab
inc dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x4149dc
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x2a2]
mov word [ebp - 0x2a4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2a4]
push esi
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.0041d704
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
cmp eax, ebx
jne 0x4149b5
cmp dword [ebp - 8], ebx
je 0x4149d3
lea eax, [ebp - 0x2a4]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov edi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, ebx
je 0x4149d3
inc dword [ebp - 4]
cmp dword [ebp - 0x18], ebx
jbe 0x4149c7
push 0xa
lea ecx, [ebp - 0x18]
call fcn.0041c9de
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041caab
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call esi
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x24]
call fcn.0041c8e1
lea ecx, [ebp - 0x48]
call fcn.0041c8e1
lea ecx, [ebp - 0x30]
call fcn.0041c8e1
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0xc]
jl 0x414745
pop edi
mov ecx, dword [ebp + 8]
call fcn.0041f3aa
cmp dword [ebp - 4], ebx
jle 0x414a91
push str.___Internal_RegistrationFailed___
call fcn.0041df03
cmp eax, ebx
jne 0x414a39
mov ecx, 0x480150
call fcn.0041d704
push eax
lea ecx, [ebp - 0x24]
call fcn.0041c81b
push 1
push ebx
mov esi, 0x42d144
push ebx
push esi
push str.__n_
lea ecx, [ebp - 0x24]
call fcn.0041d5df
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.0041ca2d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
call fcn.0041caab
push ebx
lea ecx, [ebp - 0x24]
call fcn.0041d704
push eax
mov ecx, 0x47f028
push dword [0x47f1e8]
call fcn.0041bc87
lea ecx, [ebp - 0x24]
call fcn.0041c8e1
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
pop esi
pop ebx
leave
ret 4