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

Disassembly:
sub esp, 0xc4
push ebx
push esi
push edi
push 1
call fcn.00405e25
lea ecx, [esp + 0x1c]
call fcn.0040de12
mov ecx, 0x436cc0
call fcn.00406abe
mov edi, 0x7104
xor ebx, ebx
push edi
push ebx
push 0x454e18
call fcn.00412a80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x410f0c
push esi
call fcn.0040f637
cmp byte [0x448739], bl
je 0x410f06
push ebp
push 0x42613c
push ebx
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x410efc
push edi
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x410ef3
push edi
push ebx
push 0x454e18
call fcn.004132a0
add esp, 0xc
mov byte [ebx], 1
push 0x454e1a
call fcn.00410b5f
push 0x40
pop ecx
mov esi, 0x45be1a
mov edi, 0x44a73a
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 0x410f0c
push esi
call fcn.00410b5f
push 0x800
mov edi, 0x45bf28
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 + 0x8c]
push 0x32
push eax
call fcn.00403646
add esp, 0x28
lea eax, [esp + 0x6c]
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 [0x4486f0], esi
mov dword [0x4486ec], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x454e14], eax
call fcn.0040e7c6
push edi
mov ecx, 0x44871c
call fcn.0040388c
lea ecx, [esp + 0x48]
call fcn.0040c8ef
lea ecx, [esp + 0x24]
call fcn.0040c8ef
push ebx
push 0x40e8bc
push ebx
lea eax, [esp + 0x54]
mov dword [0x4486fc], eax
lea eax, [esp + 0x30]
push str.STARTDLG
push esi
mov dword [0x448700], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [0x448700], ebx
mov dword [0x4486fc], ebx
call fcn.0040c96f
lea ecx, [esp + 0x48]
call fcn.0040c96f
mov eax, dword [0x45cf3c]
test eax, eax
je 0x41101c
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x448730], 0
je 0x41102a
call fcn.0040df51
mov ecx, 0x454d10
call fcn.00404b5c
cmp dword [0x4486f8], 0
jbe 0x411049
push dword [0x4486f4]
call fcn.00416cd0
pop ecx
push dword [0x454e14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x45bf1c]
test eax, eax
je 0x411063
push eax
call esi
cmp dword [0x44a83c], 0
jne 0x411084
cmp byte [0x448717], 0
je 0x411084
push 0xff
mov ecx, 0x44a83c
call fcn.0040188c
mov eax, dword [0x45df40]
mov byte [0x448717], 1
test eax, eax
je 0x4110a6
push eax
call fcn.00410bbe
push dword [0x45df40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x45cf36], 0
mov esi, dword [0x44a83c]
je 0x4110d7
cmp byte [0x45cf37], 0
mov eax, dword [0x42f040]
je 0x4110d1
mov esi, dword [0x45cf38]
test eax, eax
jle 0x4110d7
add esi, eax
jmp 0x4110d7
test eax, eax
jns 0x4110d7
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.0040de7a
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc4
ret 0x10