Function at 0x40b212
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 1
call fcn.0040b8a0
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x43f148
call fcn.0040ca1d
mov esi, 0x7002
push esi
push ebx
push 0x42a5f8
call fcn.0040e540
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x40b2c4
push edi
call fcn.00408af0
cmp byte [0x431659], bl
je 0x40b2be
push str.winrarsfxmappingfile.tmp
push ebx
mov edi, 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40b2b3
push esi
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40b2ac
push esi
push edi
push 0x42a5f8
call fcn.0040ee20
add esp, 0xc
push 0x42a5fa
mov byte [edi], 1
call fcn.00408a9c
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b2c4
push edi
call fcn.00408a9c
push 0x800
mov esi, 0x4295f8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push str.sfxname
call edi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push str._4d__02d__02d__02d__02d__02d__03d
lea eax, [ebp - 0xc4]
push 0x32
push eax
call fcn.0040656c
add esp, 0x28
lea eax, [ebp - 0xc4]
push eax
push str.sfxstime
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x431608], edi
mov dword [0x43160c], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x43160c]
mov dword [0x4295f4], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x4295f0], eax
call fcn.0040ddf6
push esi
mov ecx, 0x43376c
call fcn.00408240
lea ecx, [ebp - 0x60]
call fcn.0040cf21
lea ecx, [ebp - 0x3c]
call fcn.0040cf21
push ebx
push 0x40a8b1
push ebx
lea eax, [ebp - 0x60]
mov dword [0x4285ec], eax
push str.STARTDLG
lea eax, [ebp - 0x3c]
push edi
mov dword [0x4285e8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x3c]
mov dword [0x4285e8], ebx
mov dword [0x4285ec], ebx
call fcn.0040cf46
lea ecx, [ebp - 0x60]
call fcn.0040cf46
lea ecx, [ebp - 8]
call fcn.0040de42
mov eax, dword [0x431644]
cmp eax, ebx
je 0x40b3e5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x431650], bl
je 0x40b3f2
call fcn.00408d3b
mov ecx, 0x43cc20
call fcn.004084dd
cmp dword [0x431638], ebx
jbe 0x40b410
push dword [0x43162c]
call fcn.0040e65b
pop ecx
push dword [0x4295f4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4295f0]
cmp eax, ebx
je 0x40b42a
push eax
call esi
cmp dword [0x43375c], ebx
jne 0x40b449
cmp byte [0x43161c], bl
je 0x40b449
push 0xff
mov ecx, 0x43375c
call fcn.004015a0
mov eax, dword [0x431648]
mov byte [0x43161c], 1
cmp eax, ebx
je 0x40b46b
push eax
call fcn.00408cfc
push dword [0x431648]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x431640]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40b482
mov eax, dword [0x43375c]
leave
ret 0x10