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

Disassembly:
sub esp, 0xd4
push ebx
push esi
push edi
push 1
call fcn.004064ff
push 0x800
push 0x449a38
call fcn.0040e40c
lea ecx, [esp + 0x1c]
call fcn.0040e8b4
mov ecx, 0x437fd0
call fcn.00407224
mov edi, 0x7104
xor ebx, ebx
push edi
push ebx
push 0x458180
call fcn.00413550
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x4119a5
push esi
call fcn.004100e0
cmp byte [0x44ba41], bl
je 0x41199f
push ebp
push 0x427a2c
push ebx
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x411995
push edi
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x41198c
push edi
push ebx
push 0x458180
call fcn.00413d70
add esp, 0xc
mov byte [ebx], 1
push 0x458182
call fcn.004115e9
push 0x40
pop ecx
mov esi, 0x45f182
mov edi, 0x44da42
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
jmp 0x4119a5
push esi
call fcn.004115e9
push 0x800
mov edi, 0x45f290
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.sfxname
call esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push eax
push str._4d__02d__02d__02d__02d__02d__03d
lea eax, [esp + 0x9c]
push 0x32
push eax
call fcn.00403788
add esp, 0x28
lea eax, [esp + 0x7c]
push eax
push str.sfxstime
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0x64
push esi
mov dword [0x449a10], esi
mov dword [0x449a08], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x44db7c], eax
call fcn.0040f282
push edi
mov ecx, 0x44db54
mov dword [0x45817c], eax
call fcn.00403b6c
lea ecx, [esp + 0x50]
call fcn.0040d210
lea ecx, [esp + 0x24]
call fcn.0040d210
push ebx
push 0x40f35b
push ebx
lea eax, [esp + 0x5c]
mov dword [0x449a14], eax
lea eax, [esp + 0x30]
push str.STARTDLG
push esi
mov dword [0x449a18], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [0x449a18], ebx
mov dword [0x449a14], ebx
call fcn.0040d2c2
lea ecx, [esp + 0x50]
call fcn.0040d2c2
mov eax, dword [0x4602a0]
test eax, eax
je 0x411aba
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x44aa38], 0
je 0x411ac8
call fcn.0040e9f3
mov ecx, 0x458078
call fcn.004051b6
cmp dword [0x449a0c], 0
jbe 0x411ae7
push dword [0x449a04]
call fcn.0041776e
pop ecx
push dword [0x44db7c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x45817c]
test eax, eax
je 0x411b01
push eax
call esi
cmp dword [0x44db44], 0
jne 0x411b22
cmp byte [0x449a2f], 0
je 0x411b22
push 0xff
mov ecx, 0x44db44
call fcn.0040193a
mov eax, dword [0x4602a4]
mov byte [0x449a2f], 1
test eax, eax
je 0x411b44
push eax
call fcn.00411648
push dword [0x4602a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x460299], 0
mov esi, dword [0x44db44]
je 0x411b75
cmp byte [0x46029a], 0
mov eax, dword [0x430358]
je 0x411b6f
mov esi, dword [0x46029c]
test eax, eax
jle 0x411b75
add esi, eax
jmp 0x411b75
test eax, eax
jns 0x411b75
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.0040e91c
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xd4
ret 0x10