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

Disassembly:
sub esp, 0xd4
push ebx
push esi
push edi
push 1
call fcn.00adfff9
push 0x800
push 0xb17318
call fcn.00ae99f4
lea ecx, [esp + 0x1c]
call fcn.00ae9fb6
mov ecx, 0xb17090
call fcn.00ae1316
mov edi, 0x7104
xor ebx, ebx
push edi
push ebx
push 0xb25a30
call fcn.00aeeee0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0xaed266
push esi
call fcn.00aeb854
cmp byte [0xb19321], bl
je 0xaed260
push ebp
push 0xb03744
push ebx
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
je 0xaed256
push edi
push ebx
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0xaed24d
push edi
push ebx
push 0xb25a30
call fcn.00aef040
add esp, 0xc
mov byte [ebx], 1
push 0xb25a32
call fcn.00aece84
push 0x40
pop ecx
mov esi, 0xb2ca32
mov edi, 0xb1b322
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 0xaed266
push esi
call fcn.00aece84
push 0x800
mov edi, 0xb2cb40
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.00ad3dd3
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 [0xb0fd84], esi
mov dword [0xb0fd80], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push edi
mov ecx, 0xb0fd98
mov dword [0xb1b424], eax
call fcn.00add22c
lea ecx, [esp + 0x50]
call fcn.00ae8464
lea ecx, [esp + 0x24]
call fcn.00ae8464
push ebx
push 0xaeaa10
push ebx
lea eax, [esp + 0x5c]
mov dword [0xb172f0], eax
lea eax, [esp + 0x30]
push str.STARTDLG
push esi
mov dword [0xb172f4], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x24]
mov dword [0xb172f4], ebx
mov dword [0xb172f0], ebx
call fcn.00ae8522
lea ecx, [esp + 0x50]
call fcn.00ae8522
mov eax, dword [0xb2db50]
test eax, eax
je 0xaed373
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0xb18318], 0
je 0xaed381
call fcn.00aea101
mov ecx, 0xb25928
call fcn.00adea37
cmp dword [0xb172ec], 0
jbe 0xaed3a0
push dword [0xb172e8]
call fcn.00aee0bc
pop ecx
push dword [0xb1b424]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0xb25a2c]
test eax, eax
je 0xaed3bc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0xb0fe00], 0
jne 0xaed3dd
cmp byte [0xb17300], 0
je 0xaed3dd
push 0xff
mov ecx, 0xb0fe00
call fcn.00ad6db6
mov eax, dword [0xb2db54]
mov byte [0xb17300], 1
test eax, eax
je 0xaed3ff
push eax
call fcn.00aecee3
push dword [0xb2db54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0xb2db49], 0
mov esi, dword [0xb0fe00]
je 0xaed430
cmp byte [0xb2db4a], 0
mov eax, dword [0xb0d150]
je 0xaed42a
mov esi, dword [0xb2db4c]
test eax, eax
jle 0xaed430
add esi, eax
jmp 0xaed430
test eax, eax
jns 0xaed430
sub esi, eax
lea ecx, [esp + 0x1c]
call fcn.00aea01e
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xd4
ret 0x10