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

Disassembly:
sub esp, 0xd4
push ebx
push esi
push edi
push 1
call fcn.00406b8f
push 0x800
push 0x44ea38
call fcn.0040f86d
lea ecx, [esp + 0x1c]
call fcn.0040fe36
mov edi, 0x7104
xor ebx, ebx
push edi
push ebx
push 0x45e1c8
call fcn.00414bd0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x412fc0
push esi
call fcn.00411604
cmp byte [0x450a41], bl
je 0x412fba
push ebp
push 0x429d48
push ebx
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x412fb0
push edi
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x412fa7
push edi
push ebx
push 0x45e1c8
call fcn.00415220
add esp, 0xc
mov byte [ebx], 1
push 0x45e1ca
call fcn.00412bf6
push 0x40
pop ecx
mov esi, 0x4651ca
mov edi, 0x452a42
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 0x412fc0
push esi
call fcn.00412bf6
push 0x800
mov edi, 0x4652d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
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.004039a9
add esp, 0x28
lea eax, [esp + 0x7c]
push eax
push str.sfxstime
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0x64
push esi
mov dword [0x44ea24], esi
mov dword [0x44ea20], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x45e1c4], eax
call fcn.0041071d
push edi
mov ecx, 0x452b58
mov dword [0x4652cc], eax
call fcn.004040a2
lea ecx, [esp + 0x50]
call fcn.0040e2d4
lea ecx, [esp + 0x24]
call fcn.0040e2d4
push ebx
push 0x410830
push ebx
lea eax, [esp + 0x5c]
mov dword [0x44ea08], eax
lea eax, [esp + 0x30]
push str.STARTDLG
push esi
mov dword [0x44ea0c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [0x44ea0c], ebx
mov dword [0x44ea08], ebx
call fcn.0040e395
lea ecx, [esp + 0x50]
call fcn.0040e395
mov eax, dword [0x4662f0]
test eax, eax
je 0x4130d7
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x44fa38], 0
je 0x4130e5
call fcn.0040ff8d
mov ecx, 0x45e0c0
call fcn.004057df
cmp dword [0x4662e8], 0
jbe 0x413104
push dword [0x4662d8]
call fcn.00413b51
pop ecx
push dword [0x45e1c4]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4652cc]
test eax, eax
je 0x413120
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x452b44], 0
jne 0x413141
cmp byte [0x44ea1c], 0
je 0x413141
push 0xff
mov ecx, 0x452b44
call fcn.004018f4
mov eax, dword [0x4662f4]
mov byte [0x44ea1c], 1
test eax, eax
je 0x413163
push eax
call fcn.00412c53
push dword [0x4662f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x45e1c2], 0
mov esi, dword [0x452b44]
je 0x413194
cmp byte [0x45e1c3], 0
mov eax, dword [0x433608]
je 0x41318e
mov esi, dword [0x4662ec]
test eax, eax
jle 0x413194
add esi, eax
jmp 0x413194
test eax, eax
jns 0x413194
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.0040fe9c
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xd4
ret 0x10