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

Disassembly:
push 0xec8
mov eax, 0x10b89c2
call fcn.010aac8f
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.010ab82f
mov dword [ebp - 4], ebx
mov dword [ebp - 0xe38], ebx
cmp edi, ebx
je 0x1072557
lea eax, [ebp - 0xe38]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01035191
test eax, eax
jl 0x1072557
mov esi, 0x104
cmp dword [ebp - 0xe38], esi
ja 0x1072557
lea ecx, [ebp - 0xe31]
call fcn.01032c98
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.0107104f
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x1071fed
cmp eax, 0x800401f8
jne 0x1071fba
call sub.MFC42u.dll_AfxGetModuleState
push 0x30
push str.Journal_Note_Writer
jmp 0x1071fc2
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.0103eaf1
mov esi, dword [ebp - 0xe2c]
lea ecx, [ebp - 0xe31]
mov byte [ebp - 4], bl
call fcn.01032cb3
jmp 0x1072562
push dword [ebp - 0xe48]
call fcn.01075b40
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.010718cc
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x107207a
push dword [ebp - 0xe30]
call fcn.010a8e9c
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.0103eaf1
mov esi, dword [ebp - 0xe2c]
lea ecx, [ebp - 0xe54]
call fcn.01034ee2
jmp 0x1071fda
push edi
call fcn.01074324
mov dword [ebp - 0xe58], eax
mov dword [ebp - 0xe3c], ebx
cmp dword [ebp - 0xe54], ebx
je 0x10724f2
cmp eax, 3
je 0x10724f2
cmp eax, 5
je 0x10724f2
mov ecx, dword [ebp - 0xe44]
push esi
lea eax, [ebp - 0x628]
push eax
push edi
call fcn.01071b49
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jge 0x10720e4
push dword [ebp - 0xe30]
call fcn.010a8e9c
push dword [ebp - 0xe38]
call fcn.010a8e9c
pop ecx
jmp 0x1072049
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.010713c9
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x10720c8
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 0x1072152
mov dword [ebp - 0xea0], ebx
jmp 0x107215b
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 0x10721b6
sub esi, eax
sar esi, 1
push esi
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.0103d897
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.01034f55
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1072299
call fcn.01071420
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1072289
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.01071da4
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 0x107228f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1072262
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.0103eaf1
jmp 0x107228f
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.01034f55
test eax, eax
jne 0x107236d
cmp dword [ebp - 0xe3c], ebx
jne 0x10724db
push dword [ebp - 0xe30]
call fcn.01070cdb
test eax, eax
je 0x1072379
call fcn.01071420
xor esi, esi
inc esi
cmp eax, esi
jne 0x1072361
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.01071da4
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x1072319
xor eax, eax
jmp 0x107231c
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 0x1072367
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.0103eaf1
jmp 0x1072367
mov dword [ebp - 0xe2c], esi
mov dword [ebp - 0xe3c], esi
cmp dword [ebp - 0xe3c], ebx
jne 0x10724db
cmp dword [ebp - 0xe58], 4
jne 0x10724db
call fcn.01071420
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x10724cb
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.01071da4
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 0x10724af
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.010713c9
add esp, 0x20
cmp eax, ebx
mov dword [ebp - 0xe2c], eax
jl 0x1072449
push 0x1019860
push esi
lea eax, [ebp - 0x420]
push eax
call fcn.0103d8e6
mov dword [ebp - 0xe2c], eax
cmp eax, ebx
lea ecx, [ebp - 0x420]
mov dword [ebp - 0xe8c], 5
mov dword [ebp - 0xe98], ecx
jl 0x10724d1
lea eax, [ebp - 0xea8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10724d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1072488
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.0103eaf1
jmp 0x10724d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10724c3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xe2c], eax
jmp 0x10724d1
mov dword [ebp - 0xe2c], ecx
mov dword [ebp - 0xe3c], 1
lea ecx, [ebp - 0xe64]
mov byte [ebp - 4], 2
call fcn.01034ee2
cmp dword [ebp - 0xe3c], ebx
jne 0x107253a
push ebx
push dword [ebp - 0xe30]
lea ecx, [ebp - 0xed4]
push dword [ebp - 0xe38]
call fcn.0103c851
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.0103dadf
mov dword [ebp - 0xe2c], 0x80004005
push dword [ebp - 0xe30]
call fcn.010a8e9c
push dword [ebp - 0xe38]
call fcn.010a8e9c
pop ecx
pop ecx
jmp 0x1072064
mov esi, 0x80070057
mov dword [ebp - 0xe2c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe6c]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 8