Function at 0x40bfa0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ebbf0
push 0xffffffffffffffff
push 0x503850
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x528af4]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1010]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1014]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1018]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 0x101c]
mov eax, dword [ebp + 0x1020]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1024]
mov dword [ebp - 0x3c], eax
push str.winrar_config_integration
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
je 0x40c03e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c1ff
push str.winrar_config_integration
push 0x10000
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x40c1ff
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0047d580
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x40c0c6
push 0x49
lea ecx, [ebp - 0x2c]
call fcn.0047d700
push 0x1a
lea ecx, [ebp - 0x2c]
call fcn.0047d700
push 0x1a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0047d870
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca40
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca40
test ebx, ebx
je 0x40c0f6
push 0x54
lea ecx, [ebp - 0x2c]
call fcn.0047d700
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca40
push dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca40
push dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca40
lea ecx, [ebp - 0x50]
call fcn.0040a710
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0047d640
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10000
jbe 0x40c143
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0041cd10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403fc0
jmp 0x40c1ff
push eax
push dword [ebp - 0x50]
push esi
call fcn.004edb80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x800
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x88], 0x40
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], str.runas
lea eax, [ebp]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], str._setup_integration
mov dword [ebp - 0x74], 0x50bc14
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c1d7
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x40c1dd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0041cd10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403fc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004ebbd8
lea esp, [ebp + 0x1004]
pop ebp
ret 0x1c