Function at 0x410173
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.00411070
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x44b758
call fcn.00411bc5
mov esi, 0x7000
push esi
push ebx
mov edi, 0x4369e0
push edi
call fcn.0041a470
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x410227
push eax
call fcn.0040d8a1
cmp byte [0x43da39], bl
je 0x410219
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x41020e
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 0x410205
push esi
push eax
push edi
call fcn.0041bee0
add esp, 0xc
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 0x410227
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x800
mov esi, 0x4359e0
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 [0x42f76c], edi
mov dword [0x42f770], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x42f770]
mov dword [0x4359dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x4359d8], eax
call fcn.00419cae
push esi
mov ecx, 0x42f784
call fcn.0040c5ca
lea ecx, [ebp - 0x5c]
call fcn.00419151
lea ecx, [ebp - 0x34]
call fcn.00419151
push 0x64
call fcn.0040d488
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040d488
push ebx
push 0x40f8eb
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x4349d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x4349d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x4349d0], ebx
mov dword [0x4349d4], ebx
call fcn.00419173
lea ecx, [ebp - 0x5c]
call fcn.00419173
lea ecx, [ebp - 0xc]
call fcn.00419d08
cmp byte [0x43da30], bl
je 0x410306
call fcn.0040db08
mov ecx, 0x448fe0
call fcn.0040d22b
cmp dword [0x43da14], ebx
jbe 0x410324
push dword [0x43da08]
call fcn.0041a156
pop ecx
push dword [0x4359dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4359d8]
cmp eax, ebx
je 0x41033e
push eax
call esi
cmp dword [0x42f774], ebx
jne 0x41035d
cmp byte [0x43d9f2], bl
je 0x41035d
push 0xff
mov ecx, 0x42f774
call fcn.004065d2
mov eax, dword [0x43da24]
mov byte [0x43d9f2], 1
cmp eax, ebx
je 0x410373
push eax
call fcn.0040dac9
mov eax, dword [0x43da20]
cmp eax, ebx
je 0x410383
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x43da1c]
pop edi
pop esi
cmp eax, ebx
pop ebx
ja 0x41039a
mov eax, dword [0x42f774]
leave
ret 0x10