Function at 0x40fc52
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.00410bb8
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x44f5b0
call fcn.00411d09
mov esi, 0x7002
push esi
push ebx
push 0x43a820
call fcn.0041a2f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x40fd04
push edi
call fcn.0040d3a2
cmp byte [0x441879], bl
je 0x40fcfe
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 0x40fcf3
push esi
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40fcec
push esi
push edi
push 0x43a820
call fcn.0041bd60
add esp, 0xc
push 0x43a822
mov byte [edi], 1
call fcn.0040d34e
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd04
push edi
call fcn.0040d34e
push 0x800
mov esi, 0x439820
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.00411723
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 [0x4335a4], edi
mov dword [0x4335a8], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x4335a8]
mov dword [0x43981c], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x439818], eax
call fcn.00419b2c
push esi
mov ecx, 0x4335bc
call fcn.0040c194
lea ecx, [ebp - 0x60]
call fcn.00418c71
lea ecx, [ebp - 0x3c]
call fcn.00418c71
push ebx
push 0x40f2a9
push ebx
lea eax, [ebp - 0x60]
mov dword [0x438814], eax
push str.STARTDLG
lea eax, [ebp - 0x3c]
push edi
mov dword [0x438810], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x3c]
mov dword [0x438810], ebx
mov dword [0x438814], ebx
call fcn.00418c96
lea ecx, [ebp - 0x60]
call fcn.00418c96
lea ecx, [ebp - 8]
call fcn.00419b86
cmp byte [0x441870], bl
je 0x40fe22
call fcn.0040d5ed
mov ecx, 0x44ce20
call fcn.0040ceea
cmp dword [0x441858], ebx
jbe 0x40fe40
push dword [0x44184c]
call fcn.00419fd2
pop ecx
push dword [0x43981c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x439818]
cmp eax, ebx
je 0x40fe5a
push eax
call esi
cmp dword [0x4335ac], ebx
jne 0x40fe79
cmp byte [0x44183c], bl
je 0x40fe79
push 0xff
mov ecx, 0x4335ac
call fcn.00406167
mov eax, dword [0x441868]
mov byte [0x44183c], 1
cmp eax, ebx
je 0x40fe9b
push eax
call fcn.0040d5ae
push dword [0x441868]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x441864]
cmp eax, ebx
je 0x40feab
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x441860]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x40fec2
mov eax, dword [0x4335ac]
leave
ret 0x10