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

Disassembly:
sub esp, 0xc0
push ebp
push esi
push edi
push 1
call fcn.00405cd2
xor ebp, ebp
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x434cb0
call fcn.00406917
push 0x7002
push ebp
push 0x4466e0
call fcn.00412310
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x41079f
push esi
call fcn.0040ef28
cmp byte [0x44d709], 0
je 0x410799
push 0x42509c
push ebp
mov esi, 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x410790
push 0x7002
push ebp
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x410789
push 0x7002
push esi
push 0x4466e0
call fcn.00412b30
add esp, 0xc
mov byte [esi], 1
push 0x4466e2
call fcn.004103fc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41079f
push esi
call fcn.004103fc
push 0x800
mov edi, 0x458e00
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push str.sfxname
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
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 + 0x24]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push eax
push str._4d__02d__02d__02d__02d__02d__03d
lea eax, [esp + 0x88]
push 0x32
push eax
call fcn.00403623
add esp, 0x28
lea eax, [esp + 0x68]
push eax
push str.sfxstime
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push 0x64
push esi
mov dword [0x44d6e8], esi
mov dword [0x44d6e4], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x44d6e4]
mov dword [0x459e00], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [esp + 0xc]
mov dword [0x459e04], eax
call fcn.0040d814
push edi
mov ecx, 0x44f81c
call fcn.00403869
lea ecx, [esp + 0x44]
call fcn.0040c4d7
lea ecx, [esp + 0x20]
call fcn.0040c4d7
push ebp
push 0x40e1eb
push ebp
lea eax, [esp + 0x50]
mov dword [0x44d6f4], eax
lea eax, [esp + 0x2c]
push str.STARTDLG
push esi
mov dword [0x44d6f8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x20]
mov dword [0x44d6f8], ebp
mov dword [0x44d6f4], ebp
call fcn.0040c557
lea ecx, [esp + 0x44]
call fcn.0040c557
lea ecx, [esp + 0xc]
call fcn.0040d85a
mov eax, dword [0x459e18]
test eax, eax
je 0x4108cf
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x44d700], 0
je 0x4108dd
call fcn.0040d925
mov ecx, 0x458cf0
call fcn.00404b39
cmp dword [0x44d6f0], ebp
jbe 0x4108fb
push dword [0x44d6ec]
call fcn.00416580
pop ecx
push dword [0x459e00]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x459e04]
test eax, eax
je 0x410915
push eax
call esi
cmp dword [0x44f80c], 0
pop edi
pop esi
pop ebp
jne 0x410939
cmp byte [0x4466d7], 0
je 0x410939
push 0xff
mov ecx, 0x44f80c
call fcn.004018c1
mov eax, dword [0x459e1c]
mov byte [0x4466d7], 1
test eax, eax
je 0x41095b
push eax
call fcn.0041045b
push dword [0x459e1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x459e14]
test eax, eax
jne 0x41096f
mov eax, dword [0x44f80c]
add esp, 0xc0
ret 0x10