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

Disassembly:
sub esp, 0x5ac
mov eax, dword [0x43f780]
xor eax, esp
mov dword [esp + 0x5a8], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040b454
push 4
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
push 7
pop ebp
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_SetUserObjectInformationW]
push 0x45bb20
call fcn.004064b6
lea ecx, [esp + 0x1c]
call fcn.00416e37
xor eax, eax
lea edi, [esp + 0xf4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0xf4], ax
lea edi, [esp + 0x10c]
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x10c], ax
lea edi, [esp + 0x124]
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x124], ax
lea edi, [esp + 0x13c]
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x400
mov word [esp + 0x13c], ax
push edi
lea eax, [esp + 0x158]
mov dword [esp + 0x150], ebx
push ebx
push eax
mov dword [esp + 0x15c], ebp
call fcn.0041eb10
add esp, 0xc
lea eax, [esp + 0xf4]
mov ebp, 0x45bbc8
mov ecx, ebp
push eax
call fcn.00417281
lea ecx, [esp + 0xf4]
call fcn.00417228
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x41c0f2
push esi
lea ecx, [esp + 0x28]
call fcn.004014a2
lea eax, [esp + 0x24]
push eax
call fcn.0041937e
lea ecx, [esp + 0x24]
call fcn.00401780
cmp byte [0x45bb5d], bl
je 0x41c0d5
lea ecx, [esp + 0x64]
call fcn.00401ffa
push 0x45bb60
push 0x434f30
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00401ddd
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x6c]
call fcn.0040215b
test al, al
je 0x41c078
push dword [esp + 0x24]
mov ecx, ebp
call fcn.0041751a
push ebp
call fcn.0041b9b4
push 1
push ebx
push edi
mov esi, 0x45bc28
push esi
call fcn.0040995b
push esi
mov ecx, 0x45bba8
call fcn.00409a11
push edi
push esi
call fcn.00409a4a
lea ecx, [esp + 0x4c]
call fcn.00401780
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41c0ca
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, 0x1000
jb 0x41c0b5
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004016c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0041d176
pop ecx
pop ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x64]
call fcn.00402034
jmp 0x41c0f2
push esi
lea ecx, [esp + 0x50]
call fcn.004014a2
lea eax, [esp + 0x4c]
push eax
call fcn.0041b9b4
lea ecx, [esp + 0x4c]
call fcn.00401780
lea eax, [esp + 0x4c]
push eax
call fcn.004065d5
mov edi, 0x43f668
push eax
mov ecx, edi
call fcn.00405f16
lea ecx, [esp + 0x4c]
call fcn.00401780
cmp dword [0x43f67c], 7
mov eax, edi
jbe 0x41c122
mov eax, dword [0x43f668]
push eax
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4c]
push eax
movzx eax, word [esp + 0x4e]
push eax
movzx eax, word [esp + 0x50]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x52]
push eax
movzx eax, word [esp + 0x54]
push eax
push str._4d__02d__02d__02d__02d__02d__03d
lea eax, [esp + 0x574]
push 0x32
push eax
call fcn.00408771
add esp, 0x28
lea eax, [esp + 0x554]
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 [0x45c078], esi
mov dword [0x45c074], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x45c034], eax
call fcn.00418031
push edi
mov ecx, 0x45c558
mov dword [0x45c038], eax
call fcn.00407918
lea ecx, [esp + 0xac]
call fcn.00414c4e
lea ecx, [esp + 0x64]
call fcn.00414c4e
push ebx
push 0x418150
push ebx
lea eax, [esp + 0xb8]
mov dword [0x45bb10], eax
lea eax, [esp + 0x70]
push str.STARTDLG
push esi
mov dword [0x45bb14], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x64]
mov dword [0x45bb14], ebx
mov dword [0x45bb10], ebx
call fcn.00414d46
lea ecx, [esp + 0xac]
call fcn.00414d46
mov eax, dword [0x45c044]
test eax, eax
je 0x41c233
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x45bb38], bl
je 0x41c240
call fcn.0041742d
mov ecx, 0x45bbb8
call fcn.00409893
push dword [0x45c034]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x45c038]
test eax, eax
je 0x41c266
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x45c598], ebx
jne 0x41c285
cmp byte [0x45c064], bl
je 0x41c285
push 0xff
mov ecx, 0x45c598
call fcn.004037af
mov eax, dword [0x45c048]
mov byte [0x45c064], 1
test eax, eax
je 0x41c2a7
push eax
call fcn.0041ba88
push dword [0x45c048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x45c598]
cmp byte [0x45bb1f], bl
je 0x41c2d6
mov eax, dword [0x43f710]
cmp byte [0x45c040], bl
je 0x41c2d0
mov esi, dword [0x45c03c]
test eax, eax
jle 0x41c2d6
add esi, eax
jmp 0x41c2d6
test eax, eax
jns 0x41c2d6
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.00416e9d
mov ecx, dword [esp + 0x5b8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d184
add esp, 0x5ac
ret 0x10