Function at 0x40b120
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.0040b681
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x43dfc0
call fcn.0040c2a5
mov esi, 0x7000
push esi
push ebx
mov edi, 0x429470
push edi
call fcn.0040d4d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40b1d4
push eax
call fcn.00408a60
cmp byte [0x4304e1], bl
je 0x40b1c6
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40b1bb
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 0x40b1b2
push esi
push eax
push edi
call fcn.0040ddb0
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 0x40b1d4
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x800
mov esi, 0x428470
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 [0x430474], edi
mov dword [0x430480], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x430480]
mov dword [0x42846c], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x428468], eax
call fcn.0040d3e1
push esi
mov ecx, 0x4304c4
call fcn.004081af
lea ecx, [ebp - 0x5c]
call fcn.0040c6dc
lea ecx, [ebp - 0x34]
call fcn.0040c6dc
push 0x64
call fcn.004085bc
push 0x64
mov dword [ebp - 0x40], eax
call fcn.004085bc
push ebx
push 0x40a898
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x427464], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x427460], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x427460], ebx
mov dword [0x427464], ebx
call fcn.0040c6fe
lea ecx, [ebp - 0x5c]
call fcn.0040c6fe
lea ecx, [ebp - 0xc]
call fcn.0040d43b
cmp byte [0x4304d8], bl
je 0x40b2b3
call fcn.00408cc7
mov ecx, 0x43ba98
call fcn.00408424
cmp dword [0x4304ac], ebx
jbe 0x40b2d1
push dword [0x4304a0]
call fcn.0040d5eb
pop ecx
push dword [0x42846c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x428468]
cmp eax, ebx
je 0x40b2eb
push eax
call esi
cmp dword [0x4325e4], ebx
jne 0x40b30a
cmp byte [0x43048a], bl
je 0x40b30a
push 0xff
mov ecx, 0x4325e4
call fcn.00401585
mov eax, dword [0x4304bc]
mov byte [0x43048a], 1
cmp eax, ebx
je 0x40b320
push eax
call fcn.00408c88
mov eax, dword [0x4304b8]
cmp eax, ebx
je 0x40b330
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x4304b4]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40b347
mov eax, dword [0x4325e4]
leave
ret 0x10