Function at 0x40ff39
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.00410f2b
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x450750
call fcn.0041251f
mov esi, 0x7002
push esi
push ebx
push 0x43b9c0
call fcn.0041b430
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
cmp edi, ebx
je 0x40ffeb
push edi
call fcn.0040d697
cmp byte [0x442a19], bl
je 0x40ffe5
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 0x40ffda
push esi
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40ffd3
push esi
push edi
push 0x43b9c0
call fcn.0041cea0
add esp, 0xc
push 0x43b9c2
mov byte [edi], 1
call fcn.0040d643
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ffeb
push edi
call fcn.0040d643
push 0x800
mov esi, 0x43a9c0
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.0040d7cd
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 [0x434744], edi
mov dword [0x434748], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x434748]
mov dword [0x43a9bc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x43a9b8], eax
call fcn.0041a643
push esi
mov ecx, 0x43475c
call fcn.0040c3c3
lea ecx, [ebp - 0x60]
call fcn.0041976e
lea ecx, [ebp - 0x3c]
call fcn.0041976e
push ebx
push 0x40f5d8
push ebx
lea eax, [ebp - 0x60]
mov dword [0x4399b4], eax
push str.STARTDLG
lea eax, [ebp - 0x3c]
push edi
mov dword [0x4399b0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x3c]
mov dword [0x4399b0], ebx
mov dword [0x4399b4], ebx
call fcn.00419793
lea ecx, [ebp - 0x60]
call fcn.00419793
lea ecx, [ebp - 8]
call fcn.0041a68f
mov eax, dword [0x442a04]
cmp eax, ebx
je 0x41010c
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x442a10], bl
je 0x410119
call fcn.0040d8fe
mov ecx, 0x44dfc0
call fcn.0040d126
cmp dword [0x4429f8], ebx
jbe 0x410137
push dword [0x4429ec]
call fcn.0041b112
pop ecx
push dword [0x43a9bc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x43a9b8]
cmp eax, ebx
je 0x410151
push eax
call esi
cmp dword [0x43474c], ebx
jne 0x410170
cmp byte [0x4429dc], bl
je 0x410170
push 0xff
mov ecx, 0x43474c
call fcn.00406336
mov eax, dword [0x442a08]
mov byte [0x4429dc], 1
cmp eax, ebx
je 0x410192
push eax
call fcn.0040d8bf
push dword [0x442a08]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x442a00]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x4101a9
mov eax, dword [0x43474c]
leave
ret 0x10