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

Disassembly:
push 0xec8
mov eax, 0x10b89d3
call fcn.010aac9f
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.010ab83f
mov dword [ebp - 4], ebx
mov dword [ebp - 0xe38], ebx
cmp edi, ebx
je 0x1072567
lea eax, [ebp - 0xe38]
push eax
push dword [ebp + 0xc]
push edi
call fcn.010351a1
test eax, eax
jl 0x1072567
mov esi, 0x104
cmp dword [ebp - 0xe38], esi
ja 0x1072567
lea ecx, [ebp - 0xe31]
call fcn.01032ca8
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.0107105f
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x1071ffd
cmp eax, 0x800401f8
jne 0x1071fca
call sub.MFC42u.dll_AfxGetModuleState
push 0x30
push str.Journal_Note_Writer
jmp 0x1071fd2
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.01032cc3
jmp 0x1072572
push dword [ebp - 0xe48]
call fcn.01075b50
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.010718dc
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x107208a
push dword [ebp - 0xe30]
call fcn.010a8eab
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.01034ef2
jmp 0x1071fea
push edi
call fcn.01074334
mov dword [ebp - 0xe58], eax
mov dword [ebp - 0xe3c], ebx
cmp dword [ebp - 0xe54], ebx
je 0x1072502
cmp eax, 3
je 0x1072502
cmp eax, 5
je 0x1072502
mov ecx, dword [ebp - 0xe44]
push esi
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.01071b59
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x10720f4
push dword [ebp - 0xe30]
call fcn.010a8eab
push dword [ebp - 0xe38]
call fcn.010a8eab
pop ecx
jmp 0x1072059
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.010713d9
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x10720d8
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 0x1072162
mov dword [ebp - 0xea0], ebx
jmp 0x107216b
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 0x10721c6
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.01034f65
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10722a9
call fcn.01071430
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1072299
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.01071db4
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 0x107229f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1072272
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 0x107229f
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.01034f65
test eax, eax
jne 0x107237d
cmp dword [ebp - 0xe3c], ebx
jne 0x10724eb
push dword [ebp - 0xe30]
call fcn.01070ceb
test eax, eax
je 0x1072389
call fcn.01071430
xor esi, esi
inc esi
cmp eax, esi
jne 0x1072371
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.01071db4
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x1072329
xor eax, eax
jmp 0x107232c
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 0x1072377
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 0x1072377
mov dword [ebp - 0xe2c], esi
mov dword [ebp - 0xe3c], esi
cmp dword [ebp - 0xe3c], ebx
jne 0x10724eb
cmp dword [ebp - 0xe58], 4
jne 0x10724eb
call fcn.01071430
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10724db
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.01071db4
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 0x10724bf
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.010713d9
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x1072459
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 0x10724e1
lea eax, [ebp - 0xea8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10724e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1072498
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 0x10724e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10724d3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe2c], eax
jmp 0x10724e1
mov dword [ebp - 0xe2c], ecx
mov dword [ebp - 0xe3c], 1
lea ecx, [ebp - 0xe64]
mov byte [ebp - 4], 2
call fcn.01034ef2
cmp dword [ebp - 0xe3c], ebx
jne 0x107254a
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.010a8eab
push dword [ebp - 0xe38]
call fcn.010a8eab
pop ecx
pop ecx
jmp 0x1072074
mov esi, 0x80070057
mov dword [ebp - 0xe2c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe6c]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 8