Function at 0x41314f
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 - 0x20]
mov dword [ebp - 4], ebx
call fcn.00419c64
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
cmp dword [eax + 0xc], ebx
jle 0x41342e
push edi
mov esi, 0x104
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.0041c45e
mov edi, eax
lea ecx, [ebp - 0x10]
push edi
call fcn.00419d38
cmp edi, ebx
je 0x4131a4
mov ecx, edi
call fcn.00419d9a
push edi
call fcn.0042201c
pop ecx
lea eax, [ebp - 0x3a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x48]
push eax
call fcn.00419d38
push 1
push ebx
push 0x427c6c
lea ecx, [ebp - 0x48]
call fcn.0041a683
mov edi, eax
cmp edi, 0xffffffff
je 0x4131e0
lea ecx, [ebp - 0x48]
call fcn.0041ab9e
mov byte [eax + edi], bl
lea ecx, [ebp - 0x48]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x10]
push 4
add eax, 0xfffffffc
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ab15
push eax
lea ecx, [ebp - 0x3c]
call fcn.00419d38
lea ecx, [ebp - 0x3c]
call fcn.0041abe8
push 1
push str..TLB
lea ecx, [ebp - 0x3c]
call fcn.0041a099
test al, al
je 0x4132d7
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 - 0x10]
call fcn.0041ab9e
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
cmp eax, ebx
jne 0x4132a7
cmp dword [ebp - 0x24], ebx
je 0x4132c5
lea eax, [ebp - 0x2a4]
push ebx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov edi, eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, ebx
je 0x4132c5
inc dword [ebp - 4]
cmp dword [ebp - 0x20], ebx
jbe 0x4132b9
push 0xa
lea ecx, [ebp - 0x20]
call fcn.00419e97
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
call fcn.00419f64
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp 0x4133f6
push 1
push str..EXE
lea ecx, [ebp - 0x3c]
call fcn.0041a099
test al, al
je 0x413371
push 0x428268
lea ecx, [ebp - 0x30]
call fcn.00419cd4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x30]
push eax
call fcn.00419f64
push ebx
push str.___RegServer
lea ecx, [ebp - 0x30]
call fcn.00419ee6
push 0x44
lea eax, [ebp - 0x9c]
pop edi
push edi
push ebx
push eax
call fcn.00421740
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x9c], edi
call fcn.00421740
add esp, 0x18
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ab9e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x30]
call fcn.00419d9a
jmp 0x4133f6
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4133b1
cmp dword [ebp - 0x20], ebx
jbe 0x4133a0
push ebx
push 0x428254
lea ecx, [ebp - 0x20]
call fcn.00419ee6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
call fcn.00419f64
inc dword [ebp - 4]
jmp 0x4133f0
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4133c7
call eax
test eax, eax
je 0x4133e9
cmp dword [ebp - 0x20], ebx
jbe 0x4133da
push ebx
push 0x428254
lea ecx, [ebp - 0x20]
call fcn.00419ee6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x20]
push eax
call fcn.00419f64
inc dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00419d9a
lea ecx, [ebp - 0x48]
call fcn.00419d9a
lea ecx, [ebp - 0x10]
call fcn.00419d9a
inc dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0xc]
jl 0x41317c
pop edi
mov ecx, dword [ebp + 8]
call fcn.0041c51f
cmp dword [ebp - 4], ebx
jle 0x4134a6
push str.___Internal_RegistrationFailed___
call fcn.0041b2db
cmp eax, ebx
jne 0x41344e
mov eax, str.Registration_of_some_ActiveX_controls_and_or_Type_Libraries_failed._Installation_will_finish_but_the_application_may_not_work_properly.__n_The_following_controls_couldnt_be_registered:
push eax
lea ecx, [ebp - 0x10]
call fcn.00419cd4
push 1
push ebx
mov esi, 0x428254
push ebx
push esi
push str.__n_
lea ecx, [ebp - 0x10]
call fcn.0041aa75
push ebx
push esi
lea ecx, [ebp - 0x10]
call fcn.00419ee6
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
call fcn.00419f64
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
mov ecx, 0x479ee8
push dword [0x47a0a0]
call fcn.0041916b
lea ecx, [ebp - 0x10]
call fcn.00419d9a
lea ecx, [ebp - 0x20]
call fcn.00419d9a
pop esi
pop ebx
leave
ret 4