Function at 0x40bfe0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x224], ebx
cmp dword [ebp + 8], ebx
jbe 0x40c1cf
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x40c030
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.005149a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x40c23f
cmp eax, 0x104
jg 0x40c23f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404f70
push 0x16
push str.SysWoW64_regsvr32.exe
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], ebx
call fcn.00407e00
push 0x53ddd8
lea ecx, [ebp - 0x21c]
call fcn.00404f70
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x40c0b6
xor eax, eax
jmp 0x40c0cf
mov eax, esi
lea edx, [eax + 2]
jmp 0x40c0c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c0c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.00407e00
push 1
push 0x53ddd4
lea ecx, [ebp - 0x21c]
call fcn.00407e00
push 0x38
lea ecx, [ebp - 0x25c]
push ebx
push ecx
call fcn.005149a0
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
mov dword [ebp - 0x260], 0x3c
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x25c], 0x40
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], eax
call edi
test eax, eax
jne 0x40c156
cmp dword [ebp - 0x240], 0x20
jle 0x40c1ef
mov edx, dword [ebp - 0x228]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c18a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x224]
inc eax
add esi, 0x208
mov dword [ebp - 0x224], eax
cmp eax, dword [ebp + 8]
jb 0x40c030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c1cf
mov eax, 0x643
jmp 0x40c1d1