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

Disassembly:
sub esp, 0xd4
push ebx
push esi
push edi
push 1
call fcn.00406b7f
push 0x800
push 0x44ea10
call fcn.0040f8cd
lea ecx, [esp + 0x1c]
call fcn.0040fe96
mov edi, 0x7104
xor ebx, ebx
push edi
push ebx
push 0x45e1a0
call fcn.00414af0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x413010
push esi
call fcn.00411654
cmp byte [0x450a19], bl
je 0x41300a
push ebp
push 0x429d18
push ebx
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0x413000
push edi
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x412ff7
push edi
push ebx
push 0x45e1a0
call fcn.00415140
add esp, 0xc
mov byte [ebx], 1
push 0x45e1a2
call fcn.00412c46
push 0x40
pop ecx
mov esi, 0x4651a2
mov edi, 0x452a1a
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 0x413010
push esi
call fcn.00412c46
push 0x800
mov edi, 0x4652b0
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.00403999
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 [0x44e9fc], esi
mov dword [0x44e9f8], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x45e19c], eax
call fcn.0041077d
push edi
mov ecx, 0x452b30
mov dword [0x4652a4], eax
call fcn.00404092
lea ecx, [esp + 0x50]
call fcn.0040e33f
lea ecx, [esp + 0x24]
call fcn.0040e33f
push ebx
push 0x410880
push ebx
lea eax, [esp + 0x5c]
mov dword [0x44e9e0], eax
lea eax, [esp + 0x30]
push str.STARTDLG
push esi
mov dword [0x44e9e4], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [0x44e9e4], ebx
mov dword [0x44e9e0], ebx
call fcn.0040e400
lea ecx, [esp + 0x50]
call fcn.0040e400
mov eax, dword [0x4662c8]
test eax, eax
je 0x413127
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x44fa10], 0
je 0x413135
call fcn.0040fff0
mov ecx, 0x45e098
call fcn.004057cf
cmp dword [0x4662c0], 0
jbe 0x413154
push dword [0x4662b0]
call fcn.00413ebd
pop ecx
push dword [0x45e19c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4652a4]
test eax, eax
je 0x413170
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x452b1c], 0
jne 0x413191
cmp byte [0x44e9f4], 0
je 0x413191
push 0xff
mov ecx, 0x452b1c
call fcn.004018e4
mov eax, dword [0x4662cc]
mov byte [0x44e9f4], 1
test eax, eax
je 0x4131b3
push eax
call fcn.00412ca3
push dword [0x4662cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x45e19a], 0
mov esi, dword [0x452b1c]
je 0x4131e4
cmp byte [0x45e19b], 0
mov eax, dword [0x433608]
je 0x4131de
mov esi, dword [0x4662c4]
test eax, eax
jle 0x4131e4
add esi, eax
jmp 0x4131e4
test eax, eax
jns 0x4131e4
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.0040fefc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xd4
ret 0x10