Function at 0x416053
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.0041ef2d
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
cmp dword [eax + 0xc], ebx
jle 0x416340
push edi
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.00421fe1
mov edi, eax
lea ecx, [ebp - 0x30]
lea esi, [edi + 4]
push esi
call fcn.0041f001
cmp edi, ebx
je 0x4160a6
mov ecx, esi
call fcn.0041f063
push edi
call fcn.00428bae
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.0041f001
push 1
push ebx
push 0x42fb94
lea ecx, [ebp - 0x48]
call fcn.0041f999
mov edi, eax
cmp edi, 0xffffffff
je 0x4160e7
lea ecx, [ebp - 0x48]
call fcn.0041fee9
mov byte [eax + edi], bl
lea ecx, [ebp - 0x48]
call fcn.0041fee9
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.0041fe55
push eax
lea ecx, [ebp - 0x24]
call fcn.0041f001
lea ecx, [ebp - 0x24]
call fcn.0041ff33
push 1
push str..TLB
lea ecx, [ebp - 0x24]
call fcn.0041f3b8
test al, al
jne 0x41626d
push 1
push str..OLB
lea ecx, [ebp - 0x24]
call fcn.0041f3b8
test al, al
jne 0x41626d
push 1
push str..EXE
lea ecx, [ebp - 0x24]
call fcn.0041f3b8
test al, al
je 0x4161e0
push 0x4300f4
lea ecx, [ebp - 0x3c]
call fcn.0041ef9d
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0041f283
push ebx
push str.___RegServer
lea ecx, [ebp - 0x3c]
call fcn.0041f205
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.004282e0
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x9c], esi
call fcn.004282e0
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.0041fee9
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.0041f063
jmp 0x416308
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 8
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
jne 0x416223
cmp dword [ebp - 0x18], ebx
jbe 0x416212
push ebx
push 0x42fc38
lea ecx, [ebp - 0x18]
call fcn.0041f205
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041f283
inc dword [ebp - 4]
jmp 0x416262
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x416239
call eax
test eax, eax
je 0x41625b
cmp dword [ebp - 0x18], ebx
jbe 0x41624c
push ebx
push 0x42fc38
lea ecx, [ebp - 0x18]
call fcn.0041f205
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041f283
inc dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x416308
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.0041fee9
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
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 0x4162e7
cmp dword [ebp - 8], ebx
je 0x416305
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 0x416305
inc dword [ebp - 4]
cmp dword [ebp - 0x18], ebx
jbe 0x4162f9
push 0xa
lea ecx, [ebp - 0x18]
call fcn.0041f1b6
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041f283
push ebx
call esi
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x24]
call fcn.0041f063
lea ecx, [ebp - 0x48]
call fcn.0041f063
lea ecx, [ebp - 0x30]
call fcn.0041f063
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0xc]
jl 0x41607b
pop edi
mov ecx, dword [ebp + 8]
call fcn.004220a2
cmp dword [ebp - 4], ebx
jle 0x4163bd
push str.___Internal_RegistrationFailed___
call fcn.0042075a
cmp eax, ebx
jne 0x416365
mov ecx, 0x4835c0
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ef9d
push 1
push ebx
mov esi, 0x42fc38
push ebx
push esi
push str.__n_
lea ecx, [ebp - 0x24]
call fcn.0041fdb9
push ebx
push esi
lea ecx, [ebp - 0x24]
call fcn.0041f205
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
call fcn.0041f283
push ebx
lea ecx, [ebp - 0x24]
call fcn.0041fee9
push eax
mov ecx, 0x482408
push dword [0x4825f8]
call fcn.0041e1f3
lea ecx, [ebp - 0x24]
call fcn.0041f063
lea ecx, [ebp - 0x18]
call fcn.0041f063
pop esi
pop ebx
leave
ret 4