Function at 0x107205a
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xec8
mov eax, 0x10b89db
call fcn.010aacd7
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xe2c]
push eax
mov dword [ebp - 0xe44], ecx
xor ebx, ebx
push 0x1019954
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 0xe40], edi
mov dword [ebp - 0xe2c], ebx
call fcn.010ab86f
mov dword [ebp - 4], ebx
mov dword [ebp - 0xe38], ebx
cmp edi, ebx
je 0x10726bb
lea eax, [ebp - 0xe38]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01035197
test eax, eax
jl 0x10726bb
mov esi, 0x104
cmp dword [ebp - 0xe38], esi
ja 0x10726bb
lea ecx, [ebp - 0xe31]
call fcn.01032c9e
lea eax, [ebp - 0xe30]
push eax
lea eax, [ebp - 0xe48]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xe30], ebx
mov dword [ebp - 0xe48], ebx
call fcn.010711b3
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x1072151
cmp eax, 0x800401f8
jne 0x107211e
call sub.MFC42u.dll_AfxGetModuleState
push 0x30
push str.Journal_Note_Writer
jmp 0x1072126
call sub.MFC42u.dll_AfxGetModuleState
push 0x30
push edi
mov eax, dword [eax + 4]
push 0x10
push dword [ebp - 0xe2c]
mov ecx, eax
call fcn.0103eb02
mov esi, dword [ebp - 0xe2c]
lea ecx, [ebp - 0xe31]
mov byte [ebp - 4], bl
call fcn.01032cb9
jmp 0x10726c6
push dword [ebp - 0xe48]
call fcn.01075ca4
mov dword [ebp - 0xe48], ebx
mov dword [ebp - 0xe54], ebx
mov dword [ebp - 0xe50], ebx
mov dword [ebp - 0xe4c], ebx
mov ecx, dword [ebp - 0xe44]
lea eax, [ebp - 0xe38]
push eax
lea eax, [ebp - 0xe54]
push eax
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0xe38], ebx
call fcn.01071a30
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x10721de
push dword [ebp - 0xe30]
call fcn.010a8ee2
pop ecx
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x30
push edi
push 0x10
push dword [ebp - 0xe2c]
mov ecx, eax
call fcn.0103eb02
mov esi, dword [ebp - 0xe2c]
lea ecx, [ebp - 0xe54]
call fcn.01034ee8
jmp 0x107213e
push edi
call fcn.01074488
mov dword [ebp - 0xe58], eax
mov dword [ebp - 0xe3c], ebx
cmp dword [ebp - 0xe54], ebx
je 0x1072656
cmp eax, 3
je 0x1072656
cmp eax, 5
je 0x1072656
mov ecx, dword [ebp - 0xe44]
push esi
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.01071cad
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x1072248
push dword [ebp - 0xe30]
call fcn.010a8ee2
push dword [ebp - 0xe38]
call fcn.010a8ee2
pop ecx
jmp 0x10721ad
push str.Journal_Note_Writer_Port:
push str.Journal_Note_Writer_driver
push dword [ebp - 0xe30]
lea eax, [ebp - 0xe28]
push 0x1019934
push 0x400
push eax
call fcn.0107152d
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x107222c
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xea8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xea8], esi
mov dword [ebp - 0xea4], 0x400
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10722b6
mov dword [ebp - 0xea0], ebx
jmp 0x10722bf
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xea0], eax
mov dword [ebp - 0xe98], edi
lea eax, [ebp - 0xe28]
mov edi, 0x104
push edi
mov dword [ebp - 0xe94], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp esi, eax
jbe 0x107231a
sub esi, eax
sar esi, 1
push esi
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.0103d8a8
mov dword [ebp - 0xe64], ebx
mov dword [ebp - 0xe60], ebx
mov dword [ebp - 0xe5c], ebx
push ebx
mov esi, 0x20019
push esi
push 0x1019914
push dword [ebp - 0xe54]
lea ecx, [ebp - 0xe64]
mov byte [ebp - 4], 3
call fcn.01034f5b
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10723fd
call fcn.01071584
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10723ed
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp - 0xe44]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xe30]
call fcn.01071f08
lea eax, [ebp - 0xea8]
push eax
mov dword [ebp - 0xe9c], 0x1019904
mov dword [ebp - 0xe8c], 7
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10723f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10723c6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe2c], eax
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x30
push dword [ebp - 0xe40]
mov ecx, eax
push 0x10
push dword [ebp - 0xe2c]
call fcn.0103eb02
jmp 0x10723f3
mov dword [ebp - 0xe2c], ecx
mov dword [ebp - 0xe3c], 1
push ebx
push esi
push 0x10198e8
push dword [ebp - 0xe54]
lea ecx, [ebp - 0xe64]
call fcn.01034f5b
test eax, eax
jne 0x10724d1
cmp dword [ebp - 0xe3c], ebx
jne 0x107263f
push dword [ebp - 0xe30]
call fcn.01070e3f
test eax, eax
je 0x10724dd
call fcn.01071584
xor esi, esi
inc esi
cmp eax, esi
jne 0x10724c5
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp - 0xe44]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xe30]
call fcn.01071f08
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x107247d
xor eax, eax
jmp 0x1072480
mov eax, dword [eax + 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0xe40]
push 0x10198dc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x10724cb
mov dword [ebp - 0xe2c], 0x80004005
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x30
push dword [ebp - 0xe40]
mov ecx, eax
push 0x10
push dword [ebp - 0xe2c]
call fcn.0103eb02
jmp 0x10724cb
mov dword [ebp - 0xe2c], esi
mov dword [ebp - 0xe3c], esi
cmp dword [ebp - 0xe3c], ebx
jne 0x107263f
cmp dword [ebp - 0xe58], 4
jne 0x107263f
call fcn.01071584
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x107262f
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, dword [ebp - 0xe44]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xe30]
call fcn.01071f08
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1072613
push str.Journal_Note_Writer_Port:
push str.Journal_Note_Writer_driver
push dword [ebp - 0xe30]
lea eax, [ebp - 0x420]
push dword [ebp - 0xe40]
push eax
push 0x1019880
lea eax, [ebp - 0xe28]
push 0x400
push eax
call fcn.0107152d
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x10725ad
push 0x1019860
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.0103d8f7
mov dword [ebp - 0xe2c], eax
cmp eax, ebx
lea ecx, [ebp - 0x420]
mov dword [ebp - 0xe8c], 5
mov dword [ebp - 0xe98], ecx
jl 0x1072635
lea eax, [ebp - 0xea8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1072635
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10725ec
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe2c], eax
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x30
push dword [ebp - 0xe40]
mov ecx, eax
push 0x10
push dword [ebp - 0xe2c]
call fcn.0103eb02
jmp 0x1072635
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1072627
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe2c], eax
jmp 0x1072635
mov dword [ebp - 0xe2c], ecx
mov dword [ebp - 0xe3c], 1
lea ecx, [ebp - 0xe64]
mov byte [ebp - 4], 2
call fcn.01034ee8
cmp dword [ebp - 0xe3c], ebx
jne 0x107269e
push ebx
push dword [ebp - 0xe30]
lea ecx, [ebp - 0xed4]
push dword [ebp - 0xe38]
call fcn.0103c861
mov dword [ebp - 0xebc], 1
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0xed4]
push ecx
push ebx
push 0xdb9c
mov ecx, eax
call fcn.0103daf0
mov dword [ebp - 0xe2c], 0x80004005
push dword [ebp - 0xe30]
call fcn.010a8ee2
push dword [ebp - 0xe38]
call fcn.010a8ee2
pop ecx
pop ecx
jmp 0x10721c8
mov esi, 0x80070057
mov dword [ebp - 0xe2c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe6c]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 8