Function at 0x41be58
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.0040b410
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.00416df7
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.0041ea90
add esp, 0xc
lea eax, [esp + 0xf4]
mov ebp, 0x45bbc8
mov ecx, ebp
push eax
call fcn.00417241
lea ecx, [esp + 0xf4]
call fcn.004171e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x41c092
push esi
lea ecx, [esp + 0x28]
call fcn.004014a2
lea eax, [esp + 0x24]
push eax
call fcn.0041931e
lea ecx, [esp + 0x24]
call fcn.00401780
cmp byte [0x45bb5d], bl
je 0x41c075
lea ecx, [esp + 0x64]
call fcn.00401ffa
push 0x45bb60
push 0x434f20
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 0x41c018
push dword [esp + 0x24]
mov ecx, ebp
call fcn.004174da
push ebp
call fcn.0041b954
push 1
push ebx
push edi
mov esi, 0x45bc28
push esi
call fcn.00409917
push esi
mov ecx, 0x45bba8
call fcn.004099cd
push edi
push esi
call fcn.00409a06
lea ecx, [esp + 0x4c]
call fcn.00401780
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41c06a
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp eax, 0x1000
jb 0x41c055
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.0041d0f6
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 0x41c092
push esi
lea ecx, [esp + 0x50]
call fcn.004014a2
lea eax, [esp + 0x4c]
push eax
call fcn.0041b954
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 0x41c0c2
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.0040872d
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.00417fd1
push edi
mov ecx, 0x45c558
mov dword [0x45c038], eax
call fcn.00407918
lea ecx, [esp + 0xac]
call fcn.00414c0e
lea ecx, [esp + 0x64]
call fcn.00414c0e
push ebx
push 0x4180f0
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.00414d06
lea ecx, [esp + 0xac]
call fcn.00414d06
mov eax, dword [0x45c044]
test eax, eax
je 0x41c1d3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x45bb38], bl
je 0x41c1e0
call fcn.004173ed
mov ecx, 0x45bbb8
call fcn.0040984f
push dword [0x45c034]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x45c038]
test eax, eax
je 0x41c206
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x45c598], ebx
jne 0x41c225
cmp byte [0x45c064], bl
je 0x41c225
push 0xff
mov ecx, 0x45c598
call fcn.004037af
mov eax, dword [0x45c048]
mov byte [0x45c064], 1
test eax, eax
je 0x41c247
push eax
call fcn.0041ba28
push dword [0x45c048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x45c598]
cmp byte [0x45bb1f], bl
je 0x41c276
mov eax, dword [0x43f710]
cmp byte [0x45c040], bl
je 0x41c270
mov esi, dword [0x45c03c]
test eax, eax
jle 0x41c276
add esi, eax
jmp 0x41c276
test eax, eax
jns 0x41c276
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.00416e5d
mov ecx, dword [esp + 0x5b8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d104
add esp, 0x5ac
ret 0x10