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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
push 1
call fcn.0040b7c7
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x43dfe8
call fcn.0040c48a
mov esi, 0x7002
push esi
push ebx
push 0x429498
call fcn.0040d9d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x40b2b1
push edi
call fcn.00408abe
cmp byte [0x4304f9], bl
je 0x40b2ab
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 0x40b2a0
push esi
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40b299
push esi
push edi
push 0x429498
call fcn.0040e2b0
add esp, 0xc
push 0x42949a
mov byte [edi], 1
call fcn.00408a6a
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b2b1
push edi
call fcn.00408a6a
push 0x800
mov esi, 0x428498
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 - 0xd4]
push 0x32
push eax
call fcn.00401dca
add esp, 0x28
lea eax, [ebp - 0xd4]
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 [0x4304a8], edi
mov dword [0x4304ac], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x4304ac]
mov dword [0x428494], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x428490], eax
call fcn.0040d852
push esi
mov ecx, 0x43260c
call fcn.0040823f
lea ecx, [ebp - 0x70]
call fcn.0040c929
lea ecx, [ebp - 0x44]
call fcn.0040c929
push 0x64
call fcn.0040d5c2
push 0x64
mov dword [ebp - 0x50], eax
call fcn.0040d5c2
push ebx
push 0x40a89c
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x70]
mov dword [0x42748c], eax
push str.STARTDLG
lea eax, [ebp - 0x44]
push edi
mov dword [0x427488], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x44]
mov dword [0x427488], ebx
mov dword [0x42748c], ebx
call fcn.0040c94e
lea ecx, [ebp - 0x70]
call fcn.0040c94e
lea ecx, [ebp - 8]
call fcn.0040d8ac
cmp byte [0x4304f0], bl
je 0x40b3e3
call fcn.00408d09
mov ecx, 0x43bac0
call fcn.004084cf
cmp dword [0x4304d8], ebx
jbe 0x40b401
push dword [0x4304cc]
call fcn.0040daeb
pop ecx
push dword [0x428494]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x428490]
cmp eax, ebx
je 0x40b41b
push eax
call esi
cmp dword [0x4325fc], ebx
jne 0x40b43a
cmp byte [0x4304bc], bl
je 0x40b43a
push 0xff
mov ecx, 0x4325fc
call fcn.004015ae
mov eax, dword [0x4304e8]
mov byte [0x4304bc], 1
cmp eax, ebx
je 0x40b45c
push eax
call fcn.00408cca
push dword [0x4304e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4304e4]
cmp eax, ebx
je 0x40b46c
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x4304e0]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40b483
mov eax, dword [0x4325fc]
leave
ret 0x10