Function at 0x401d94
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push edi
mov ebx, ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x401fcc
push esi
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x401fc4
mov dword [ebp - 4], 1
push dword [0x41c3b0]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401e0d
inc esi
inc dword [ebp - 4]
cmp esi, dword [ebp - 8]
jge 0x401fc4
push 0xc8
lea eax, [ebx + 0x1d8]
push eax
push dword [edi + esi*4]
call fcn.00401c8d
jmp 0x401fbb
cmp dword [ebx + 0x374], 0
jne 0x401fb3
push dword [0x41c39c]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
je 0x401e6e
push dword [0x41c3a0]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
je 0x401e6e
push dword [0x41c3a4]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
je 0x401e6e
push dword [0x41c3a8]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401fb3
push dword [0x41c3a0]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401e89
mov byte [ebx + 0x378], 1
push dword [0x41c3a4]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401ea4
mov byte [ebx + 0x379], 1
push dword [0x41c3a8]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401ef8
call sub.Mso20Win32Client.dll_Ordinal_1425
test eax, eax
setne al
mov byte [ebx + 0x37a], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x401efb
push dword [0x41c3ac]
push dword [edi + esi*4 + 4]
call sub.Mso20Win32Client.dll_Ordinal_1390
pop ecx
pop ecx
test eax, eax
jne 0x401ef8
mov al, byte [ebx + 0x37a]
inc esi
mov byte [ebx + 0x37b], al
mov eax, dword [ebp - 4]
inc eax
jmp 0x401efb
mov eax, dword [ebp - 4]
inc esi
mov dword [ebx + 0x374], 0x414680
inc eax
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 8]
jge 0x401fb6
push 0x2e
push dword [edi + esi*4]
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
push str.onenote
push dword [edi + esi*4]
mov dword [ebp - 0xc], eax
call fcn.0040121c
test al, al
je 0x401f5f
xor eax, eax
mov ecx, 0x414690
inc eax
cmp dword [ecx], 5
je 0x401f4f
add ecx, 0x10
inc eax
cmp ecx, str._format_error:_not_enough_arguments_
jl 0x401f3c
jmp 0x401fb3
shl eax, 4
add eax, 0x414680
mov dword [ebx + 0x374], eax
jmp 0x401fb3
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401fb3
add ecx, 2
xor ebx, ebx
mov eax, 0x414694
mov dword [ebp - 0xc], ecx
inc ebx
mov dword [ebp - 0x14], eax
push dword [eax + 4]
push dword [eax]
push ecx
call fcn.00401c5b
test al, al
jne 0x401f9f
mov eax, dword [ebp - 0x14]
inc ebx
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp eax, 0x414704
jl 0x401f77
mov ebx, dword [ebp - 0x10]
jmp 0x401fb3
mov eax, dword [ebp - 0x10]
shl ebx, 4
add ebx, 0x414680
mov dword [eax + 0x374], ebx
mov ebx, eax
mov eax, dword [ebp - 4]
inc esi
inc eax
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 8]
jl 0x401dd3
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret