Function at 0x40f9c0
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.004108a7
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x44ea98
call fcn.00411864
mov esi, 0x7000
push esi
push ebx
mov edi, 0x439d00
push edi
call fcn.0041a0b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40fa74
push eax
call fcn.0040d195
cmp byte [0x440d59], bl
je 0x40fa66
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40fa5b
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 0x40fa52
push esi
push eax
push edi
call fcn.0041bb20
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 0x40fa74
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x800
mov esi, 0x438d00
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 [0x432a8c], edi
mov dword [0x432a90], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x432a90]
mov dword [0x438cfc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x438cf8], eax
call fcn.004198f3
push esi
mov ecx, 0x432aa4
call fcn.0040bf77
lea ecx, [ebp - 0x5c]
call fcn.00418bee
lea ecx, [ebp - 0x34]
call fcn.00418bee
push 0x64
call fcn.0040ce4a
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040ce4a
push ebx
push 0x40f0da
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x437cf4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x437cf0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x437cf0], ebx
mov dword [0x437cf4], ebx
call fcn.00418c10
lea ecx, [ebp - 0x5c]
call fcn.00418c10
lea ecx, [ebp - 0xc]
call fcn.0041994d
cmp byte [0x440d50], bl
je 0x40fb53
call fcn.0040d3e0
mov ecx, 0x44c300
call fcn.0040ccb2
cmp dword [0x440d34], ebx
jbe 0x40fb71
push dword [0x440d28]
call fcn.00419d9a
pop ecx
push dword [0x438cfc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x438cf8]
cmp eax, ebx
je 0x40fb8b
push eax
call esi
cmp dword [0x432a94], ebx
jne 0x40fbaa
cmp byte [0x440d12], bl
je 0x40fbaa
push 0xff
mov ecx, 0x432a94
call fcn.004062b3
mov eax, dword [0x440d44]
mov byte [0x440d12], 1
cmp eax, ebx
je 0x40fbc0
push eax
call fcn.0040d3a1
mov eax, dword [0x440d40]
cmp eax, ebx
je 0x40fbd0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x440d3c]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40fbe7
mov eax, dword [0x432a94]
leave
ret 0x10