Function at 0x40cefe
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040db78
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42c4f0
call fcn.0040e2c1
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41e100
push edi
call fcn.004097b8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40cfac
push eax
call fcn.0040adbc
cmp byte [0x423959], bl
je 0x40cf9e
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40cf93
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40cf8a
push esi
push eax
push edi
call fcn.004097e5
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cfac
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41d900
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x417e84], edi
mov dword [0x417e88], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x417e88]
mov dword [0x41d8fc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41d8f8], eax
call fcn.0041208c
push esi
mov ecx, 0x417e98
call fcn.00408e0c
lea ecx, [ebp - 0x5c]
call fcn.0041154a
lea ecx, [ebp - 0x34]
call fcn.0041154a
push 0x64
call fcn.0040a537
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040a537
push ebx
push 0x40c64b
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41d0f4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41d0f0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41d0f0], ebx
mov dword [0x41d0f4], ebx
call fcn.0041156c
lea ecx, [ebp - 0x5c]
call fcn.0041156c
lea ecx, [ebp - 0xc]
call fcn.004120e6
cmp byte [0x423950], bl
je 0x40d08b
call fcn.0040aff6
mov ecx, 0x429978
call fcn.0040a216
cmp dword [0x423934], ebx
jbe 0x40d0a8
push dword [0x423928]
call fcn.00409734
push dword [0x41d8fc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41d8f8]
cmp eax, ebx
je 0x40d0c2
push eax
call esi
cmp dword [0x417e8c], ebx
jne 0x40d0e1
cmp byte [0x423912], bl
je 0x40d0e1
push 0xff
mov ecx, 0x417e8c
call fcn.00403326
mov eax, dword [0x423944]
mov byte [0x423912], 1
cmp eax, ebx
je 0x40d0f7
push eax
call fcn.0040afb7
mov eax, dword [0x423940]
cmp eax, ebx
je 0x40d107
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x42393c]
cmp eax, ebx
ja 0x40d11b
mov eax, dword [0x417e8c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]