Function at 0x401d10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465420
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x47f5dc]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
xorps xmm0, xmm0
push ebx
push ebx
mov esi, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x1c], ebx
call fcn.00411480
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x70], ebx
push eax
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00411200
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 1
push eax
push 0x46cf40
lea ecx, [esp + 0x18]
call fcn.00411420
test eax, eax
je 0x401ddf
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0044cb89
add esp, 4
mov ebx, eax
cmp dword [esp + 0x44], 8
jb 0x401df2
push dword [esp + 0x30]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 2
push eax
push 0x46cf50
lea ecx, [esp + 0x18]
call fcn.00411420
test eax, eax
je 0x401e40
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0044cb89
add esp, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], 8
jb 0x401e53
push dword [esp + 0x30]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 3
push eax
push str.ipc_type
lea ecx, [esp + 0x18]
call fcn.00411420
test eax, eax
je 0x401ea1
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0044cb89
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x44], 8
jb 0x401eb4
push dword [esp + 0x30]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 4
push eax
push str.hWndSrc
lea ecx, [esp + 0x18]
call fcn.00411420
test eax, eax
jne 0x401f0f
mov byte [esp + 0x70], al
cmp dword [esp + 0x44], 8
jb 0x401f05
push dword [esp + 0x30]
call fcn.0044a77c
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
jmp 0x401f3f
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x401f42
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call fcn.0044cb92
add esp, 4
mov byte [esp + 0x70], 0
cmp dword [esp + 0x44], 8
mov esi, eax
mov edi, edx
jb 0x401f42
push dword [esp + 0x30]
call fcn.0044a77c
add esp, 4
push edi
mov edi, dword [esp + 0x20]
push esi
push dword [esp + 0x20]
push edi
push ebx
push str.ParseCmdLine_nIPCID_d_nId_d_nIPCType_d_nWndSrc_I64u
push 0xda
push str.UpgradeApp.cpp
call fcn.0040a560
add esp, 0x20
cmp dword [esp + 0x18], 6
je 0x401f87
push str.ParseCmdLine_FAILED_nIPCType___PROCIPC_DOWNLOADER
push 0xda
push str.UpgradeApp.cpp
call fcn.0040a560
add esp, 0xc
xor esi, esi
jmp 0x401ff2
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
lea eax, [esp + 0x48]
mov byte [esp + 0x70], 5
push eax
push str.product
lea ecx, [esp + 0x18]
call fcn.00411420
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x40], esi
mov esi, 1
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], ebx
jb 0x401fdb
push dword [esp + 0x48]
call fcn.0044a77c
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
lea ecx, [esp + 0x10]
call fcn.00402140
push dword [esp + 0x10]
call fcn.0044a77c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0044a781
mov esp, ebp
pop ebp
ret