Function at 0x401dd9
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 0x402011
push esi
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x402009
mov dword [ebp - 4], 1
push dword [0x41c3cc]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401e52
inc esi
inc dword [ebp - 4]
cmp esi, dword [ebp - 8]
jge 0x402009
push 0xc8
lea eax, [ebx + 0x1d8]
push eax
push dword [edi + esi*4]
call fcn.00401d3f
jmp 0x402000
cmp dword [ebx + 0x374], 0
jne 0x401ff8
push dword [0x41c3b8]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
je 0x401eb3
push dword [0x41c3bc]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
je 0x401eb3
push dword [0x41c3c0]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
je 0x401eb3
push dword [0x41c3c4]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401ff8
push dword [0x41c3bc]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401ece
mov byte [ebx + 0x378], 1
push dword [0x41c3c0]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401ee9
mov byte [ebx + 0x379], 1
push dword [0x41c3c4]
push dword [edi + esi*4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401f3d
call sub.Mso20Win32Client.dll_Ordinal_1427
test eax, eax
setne al
mov byte [ebx + 0x37a], al
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x401f40
push dword [0x41c3c8]
push dword [edi + esi*4 + 4]
call sub.Mso20Win32Client.dll_Ordinal_1019
pop ecx
pop ecx
test eax, eax
jne 0x401f3d
mov al, byte [ebx + 0x37a]
inc esi
mov byte [ebx + 0x37b], al
mov eax, dword [ebp - 4]
inc eax
jmp 0x401f40
mov eax, dword [ebp - 4]
inc esi
mov dword [ebx + 0x374], 0x414638
inc eax
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 8]
jge 0x401ffb
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.004013e1
test al, al
je 0x401fa4
xor eax, eax
mov ecx, 0x414648
inc eax
cmp dword [ecx], 5
je 0x401f94
add ecx, 0x10
inc eax
cmp ecx, 0x4146b8
jl 0x401f81
jmp 0x401ff8
shl eax, 4
add eax, 0x414638
mov dword [ebx + 0x374], eax
jmp 0x401ff8
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401ff8
add ecx, 2
xor ebx, ebx
mov eax, 0x41464c
mov dword [ebp - 0xc], ecx
inc ebx
mov dword [ebp - 0x14], eax
push dword [eax + 4]
push dword [eax]
push ecx
call fcn.00401d08
test al, al
jne 0x401fe4
mov eax, dword [ebp - 0x14]
inc ebx
mov ecx, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp eax, 0x4146bc
jl 0x401fbc
mov ebx, dword [ebp - 0x10]
jmp 0x401ff8
mov eax, dword [ebp - 0x10]
shl ebx, 4
add ebx, 0x414638
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 0x401e18
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret