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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.00410b0b
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x44a740
call fcn.0041165e
mov esi, 0x7000
push esi
push ebx
mov edi, 0x4359d8
push edi
call fcn.00419f50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40fcc2
push eax
call fcn.0040d358
cmp byte [0x43ca31], bl
je 0x40fcb4
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40fca9
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 0x40fca0
push esi
push eax
push edi
call fcn.0041b990
add esp, 0xc
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 0x40fcc2
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x800
mov esi, 0x4349d8
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 [0x42e764], edi
mov dword [0x42e768], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x42e768]
mov dword [0x4349d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x4349d0], eax
call fcn.00419758
push esi
mov ecx, 0x42e778
call fcn.0040c081
lea ecx, [ebp - 0x5c]
call fcn.00418bfb
lea ecx, [ebp - 0x34]
call fcn.00418bfb
push 0x64
call fcn.0040cf3f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040cf3f
push ebx
push 0x40f386
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x4339cc], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x4339c8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x4339c8], ebx
mov dword [0x4339cc], ebx
call fcn.00418c1d
lea ecx, [ebp - 0x5c]
call fcn.00418c1d
lea ecx, [ebp - 0xc]
call fcn.004197b2
cmp byte [0x43ca28], bl
je 0x40fda1
call fcn.0040d5a3
mov ecx, 0x447fc8
call fcn.0040cce2
cmp dword [0x43ca0c], ebx
jbe 0x40fdbf
push dword [0x43ca00]
call fcn.00419bf3
pop ecx
push dword [0x4349d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4349d0]
cmp eax, ebx
je 0x40fdd9
push eax
call esi
cmp dword [0x42e76c], ebx
jne 0x40fdf8
cmp byte [0x43c9ea], bl
je 0x40fdf8
push 0xff
mov ecx, 0x42e76c
call fcn.00406270
mov eax, dword [0x43ca1c]
mov byte [0x43c9ea], 1
cmp eax, ebx
je 0x40fe0e
push eax
call fcn.0040d564
mov eax, dword [0x43ca18]
cmp eax, ebx
je 0x40fe1e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x43ca14]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40fe35
mov eax, dword [0x42e76c]
leave
ret 0x10