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

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x597f54]
xor eax, ebp
mov dword [ebp + 0xec], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x480]
test eax, eax
je 0x4098f4
and dword [ebp - 0x20], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x18]
push eax
call edi
lea eax, [ebp - 0x18]
push 0x5c
push eax
call fcn.004e3860
test eax, eax
pop ecx
pop ecx
je 0x4098f3
push ebx
lea eax, [ebp - 0x18]
push 0x5c
push eax
call fcn.004e3860
push str.TEMP
mov byte [eax], 0
call fcn.004e4778
add esp, 0xc
test eax, eax
je 0x409693
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4096f5
push 0x52f10c
call fcn.004e4778
test eax, eax
pop ecx
je 0x4096b1
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4096f5
mov ebx, 0x104
push ebx
call fcn.004e43ad
pop ecx
push ebx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4096e0
mov dword [ebp - 0x20], 1
push dword [ebp - 0x24]
call fcn.004e388d
cmp dword [ebp - 0x20], 0
pop ecx
je 0x4098f0
jmp 0x4096fa
mov ebx, 0x104
call fcn.004092af
push 0x24
push eax
push str.This_E_Transcript_file_is_in_a_temporary_folder._Do_you_want_to_save_it_to_a_different_folder__r_n_r_nIf_you_choose_Yes__you_will_be_prompted_for_a_save_location__and_the_transcript_will_be_automatically_re_launched_from_there.
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4098f0
mov eax, dword [esi + 0x480]
push 0x5c
push eax
call fcn.004e3860
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call edi
push 0x58
pop edi
push edi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004e3e60
lea eax, [ebp - 0x18]
mov dword [ebp - 0x64], eax
lea eax, [esi + 0x650]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x480]
push 0x2e
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], str.E_transcript_Files__.ptx_.exe_
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x50], str.Save_E_Transcript_File_As
mov dword [ebp - 0x4c], 0x80e
call fcn.004e3860
inc eax
mov edi, 0x2000
push edi
mov dword [ebp - 0x44], eax
call fcn.004e43ad
mov dword [ebp - 0x1c], eax
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x4098e7
push 0x20
push dword [esi + 0x480]
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
push 0
jne 0x4097cd
push dword [ebp - 0x24]
push str.Could_not_open_this_E_Transcript_file_for_reading.
jmp 0x4098df
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, dword [sym.imp.KERNEL32.dll__lclose]
push eax
mov dword [ebp - 0x20], eax
call ebx
push 0x12
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll__lopen]
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40980f
push 0
push dword [ebp - 0x24]
push str.Could_not_create_the_destination_E_Transcript_file_for_writing.
jmp 0x4098df
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll__lread]
test eax, eax
jne 0x409802
push dword [ebp - 0x28]
call ebx
push dword [ebp - 0x20]
call ebx
mov eax, dword [esi + 0x480]
push 0x2e
push eax
call fcn.004e3860
pop ecx
pop ecx
push str..ptx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x409870
push 0x104
push dword [ebp - 0x1c]
push dword [0x599ed0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x52f100
push dword [ebp - 0x1c]
call edi
jmp 0x409876
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
push dword [ebp - 0x64]
push dword [ebp - 0x1c]
call edi
push 0x5c
push dword [ebp - 0x64]
call fcn.004e3860
pop ecx
pop ecx
mov byte [eax], 0
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jge 0x4098a5
push 0x52f0fc
push dword [ebp - 0x64]
call edi
push dword [ebp - 0x64]
lea eax, [esi + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0xd4]
mov edx, dword [ecx]
call fcn.004092a3
push eax
call dword [edx]
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x40990a
push 0
push dword [ebp - 0x24]
push str.Could_not_launch_the_new_copy_of_the_E_Transcript_file__will_run_from_the_temporary_folder_instead.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x1c]
call fcn.004e388d
pop ecx
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp + 0xec]
xor ecx, ebp
pop esi
call fcn.004e2867
add ebp, 0xf0
leave
ret
xor eax, eax
inc eax
jmp 0x4098f2