Function at 0x40c39f
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.0040ca7f
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x435f20
call fcn.0040d534
mov esi, 0x5800
push esi
push ebx
mov edi, 0x428568
push edi
call fcn.00408ea7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40c44d
push eax
call fcn.0040a372
cmp byte [0x42ddd1], bl
je 0x40c43f
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40c434
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 0x40c42b
push esi
push eax
push edi
call fcn.00408ed4
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 0x40c44d
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x427d68
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 [0x42dd6c], edi
mov dword [0x42dd78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x42dd78]
mov dword [0x427d64], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x427d60], eax
call fcn.0040e65f
push esi
mov ecx, 0x42eed4
call fcn.00408cbb
lea ecx, [ebp - 0x5c]
call fcn.0040d97b
lea ecx, [ebp - 0x34]
call fcn.0040d97b
push 0x64
call fcn.00409a1d
push 0x64
mov dword [ebp - 0x40], eax
call fcn.00409a1d
push ebx
push 0x40bb47
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x42755c], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x427558], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x427558], ebx
mov dword [0x42755c], ebx
call fcn.0040d99d
lea ecx, [ebp - 0x5c]
call fcn.0040d99d
lea ecx, [ebp - 0xc]
call fcn.0040e6b9
cmp byte [0x42ddc8], bl
je 0x40c52c
call fcn.0040a5ac
mov ecx, 0x433e00
call fcn.004096fc
cmp dword [0x42dda4], ebx
jbe 0x40c549
push dword [0x42dd98]
call fcn.00408d67
push dword [0x427d64]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x427d60]
cmp eax, ebx
je 0x40c563
push eax
call esi
cmp dword [0x42ddbc], ebx
jne 0x40c582
cmp byte [0x42dd82], bl
je 0x40c582
push 0xff
mov ecx, 0x42ddbc
call fcn.004019e1
mov eax, dword [0x42ddb4]
mov byte [0x42dd82], 1
cmp eax, ebx
je 0x40c598
push eax
call fcn.0040a56d
mov eax, dword [0x42ddb0]
cmp eax, ebx
je 0x40c5a8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x42ddac]
cmp eax, ebx
ja 0x40c5bc
mov eax, dword [0x42ddbc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]