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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4547e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push esi
lea esi, [ecx + 0xc]
push edi
push str.npbfAppWeb.dll
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0040e020
push str.npbfAppWeb64.dll
mov edx, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040e020
add esp, 8
push 1
push 0x25
lea eax, [ebp - 0x260]
push eax
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.regsvr32.exe
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0x45d8cc
push str.__s__s_
push eax
call fcn.004012e0
add esp, 0x10
lea ecx, [ebp - 0x10]
push 3
push 0x45d8e4
call fcn.0040a080
push 0x38
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0043f760
lea eax, [ebp - 0x260]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [0x46fb8c], 6
mov dword [ebp - 0x44], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c330
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040ef30
or edi, 0xffffffff
test eax, eax
je 0x40c408
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 0x45d8cc
push str.__s__s_
push eax
call fcn.004012e0
add esp, 0x10
lea ecx, [ebp - 0x10]
push 3
push 0x45d8e4
call fcn.0040a080
push 0x38
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0043f760
mov esi, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [0x46fb8c], 6
lea eax, [ebp - 0x260]
mov dword [ebp - 0x48], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c3eb
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c408
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c428
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c448
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
pop edi
pop esi
jg 0x40c46b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret