Function at 0x413150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x4131a2
cmp dword [ebp - 4], 0
je 0x41319b
mov eax, dword [ebp - 4]
push eax
call fcn.00402478
add esp, 4
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x413957
xor eax, eax
jmp 0x413957
mov dword [ebp - 8], 1
xor ecx, ecx
je 0x413409
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x12], ax
cmp dword [ebp + 0xc], 0
jne 0x413212
push str._nPrint_to_the_Webinar_virtual_printer___Y_N__n_nYes___No
push str.__Ready_To_Print___
push 0
push 0
call fcn.0040137f
add esp, 0x10
test eax, eax
jne 0x413212
xor eax, eax
jmp 0x413957
push 0x336
push 0x4d0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
add eax, 6
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 6
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
jne 0x413288
push 0x648be8
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_Webinar_session:__s
call fcn.00401014
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
push 0xffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_FloodFill]
mov word [ebp - 0x14], 0x34
mov word [ebp - 0x12], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x1cc], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c8], 2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00413970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41333f
mov dword [ebp - 0x3c], 0
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x20
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], 1
cmp dword [ebp - 0x18], 0
je 0x413353
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x10], 0
je 0x41336a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x1c], 0
je 0x413381
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 8], 0
jne 0x4133c2
cmp dword [ebp + 0xc], 0
jne 0x4133ac
push 0x648c58
push str.The_Webinar_form_printing_encountered_an_ERROR__n_nPress_any_key...
push 0x648cac
push 0
push 0
push 0
push 1
call fcn.004029d2
add esp, 0x1c
push 0x648cbc
call fcn.00401014
add esp, 4
mov dword [ebp - 8], 0
jmp 0x4133fc
cmp dword [ebp + 0xc], 0
jne 0x4133f5
push 4
call fcn.00401c12
add esp, 4
push str.The_Change_Request_has_been_printed_to:_n_Webinar_DEMO_Printer__n_nPress_any_key_to_continue...
push 0x648d58
push 0
push 0
push 0x402a90
push 0
push 0xffffffffffffffff
push 1
push 0
call fcn.004014a1
add esp, 0x24
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
jmp 0x413957
cmp dword [ebp + 0x10], 0
je 0x41377d
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp + 0xc], 0
jne 0x413468
push str.This_will_generate_a_viewable_image_of_the_change_request_form._nThe_form_will_then_be_shown_on_the_screen_rather_than_printed._n_nWould_you_like_to_continue___Y_N__n_nYes___No
push str.__Print_To_Screen___
push 0
push 0
call fcn.0040137f
add esp, 0x10
test eax, eax
jne 0x413468
xor eax, eax
jmp 0x413957
push 0x26e
push 0x188
push 0
push 0
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
add eax, 6
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 6
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x44], 0
jne 0x4134de
push 0x648e34
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.00401014
add esp, 8
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x48], eax
push 0xffffff
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_FloodFill]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1cc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c8], 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00413970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4136b8
mov byte [ebp - 0x270], 0
push 0x103
push 0
lea ecx, [ebp - 0x26f]
push ecx
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0x168], 0
push 0x103
push 0
lea edx, [ebp - 0x167]
push edx
call fcn.005b02a0
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4135d7
push 0x648eac
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.00401014
add esp, 8
push 0x104
push 0
push 0
call fcn.00401474
add esp, 8
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00402725
add esp, 0xc
call fcn.005b3db0
mov esi, eax
call fcn.0040323d
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
mov esi, edx
call fcn.005b3db0
add esi, eax
push esi
push str.ChangeReq__d.jpg
push 0x104
lea edx, [ebp - 0x168]
push edx
call fcn.00402dc9
add esp, 0x10
push str.ChangeReq_
lea eax, [ebp - 0x270]
push eax
call fcn.00401ec4
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x270]
push ecx
call fcn.00401cd0
add esp, 0xc
lea edx, [ebp - 0x270]
push edx
call fcn.00402338
add esp, 4
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.00402293
add esp, 8
push 0x61
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x58]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x54]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x50]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.004019d3
add esp, 0x1c
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.00402608
add esp, 4
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x270]
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.00401226
add esp, 0xc
cmp dword [ebp - 0x48], 0
je 0x4136cc
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x44], 0
je 0x4136e3
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x4c], 0
je 0x4136fa
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 8], 0
jne 0x41373b
cmp dword [ebp + 0xc], 0
jne 0x413725
push 0x648f40
push str.An_error_occurred_while_generating_the_image__nPlease_try_printing_to_a_local_printer_instead._n_nPress_any_key...
push 0x648fc0
push 0
push 0
push 0
push 1
call fcn.004029d2
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
call fcn.00401014
add esp, 4
mov dword [ebp - 8], 0
jmp 0x413775
cmp dword [ebp + 0xc], 0
jne 0x41376e
push 7
call fcn.00401c12
add esp, 4
push str.The_Change_Request_has_been_displayed._nPlease_check_your_Windows_Task_Bar_if_you_dont_see_the_image._n_nPress_any_key_to_continue...
push 0x649094
push 0
push 0
push 0x402a90
push 0
push 0xffffffffffffffff
push 1
push 0
call fcn.004014a1
add esp, 0x24
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
jmp 0x413957
cmp dword [0x700d24], 0
jne 0x4137af
call fcn.00402a9a
mov dword [0x700d24], eax
push 0
mov edx, dword [0x700d24]
push edx
call fcn.00401618
add esp, 8
mov eax, dword [0x700d24]
push eax
call fcn.00401249
add esp, 4
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push 0
mov ecx, dword [0x700d24]
push ecx
push 0x402f36
push 1
push 0
call fcn.00401d9d
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413937
mov edx, dword [ebp - 4]
mov dword [0x700d24], edx
mov eax, dword [ebp - 4]
push eax
call fcn.00401da2
add esp, 4
test eax, eax
je 0x41383b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c8], 2
mov edx, dword [ebp + 8]
mov dword [edx + 0x1cc], 0
push 0
push 1
push 0x1d0
mov eax, dword [ebp + 8]
push eax
push fcn.00413970
push 0x6490fc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402207
add esp, 0x1c
mov dword [ebp - 8], eax
jmp 0x4138ab
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1cc], 0
push 0
push 1
push 0x1d0
mov ecx, dword [ebp + 8]
push ecx
push fcn.00413970
push str.Change_Request
mov edx, dword [ebp - 4]
push edx
call fcn.00402207
add esp, 0x1c
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c8], 1
push 0
push 1
push 0x1d0
mov ecx, dword [ebp + 8]
push ecx
push fcn.00413970
push str.Change_Request_Duplicate
mov edx, dword [ebp - 4]
push edx
call fcn.00402207
add esp, 0x1c
cmp dword [ebp - 8], 0
jne 0x4138ec
cmp dword [ebp + 0xc], 0
jne 0x4138d6
push 0x649138
push str.A_problem_occurred_while_sending_the_request_to_the_printer._nPlease_try_selecting_an_alternate_printer._nIf_this_problem_persists__please_contact_tech_support____s._nLeave_your_name__store_number__and_a_description_of_the_problem._n_nPress_any_key...
push str.__Print_Error__
push 0
push 0
push 0
push 1
call fcn.004029d2
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.00401014
add esp, 4
mov dword [ebp - 8], 0
jmp 0x413937
cmp dword [ebp + 0xc], 0
jne 0x413930
push 4
call fcn.00401c12
add esp, 4
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0040329c
add esp, 0xc
push eax
push str.The_Change_Request_has_been_printed_to:_n__s__n_nPress_any_key_to_continue...
push str.__Print_Success__
push 0
push 0
push 0x402a90
push 0
push 0xffffffffffffffff
push 1
push 0
call fcn.004014a1
add esp, 0x28
mov dword [ebp - 8], 1
mov ecx, dword [0x700d24]
push ecx
call fcn.0040251d
add esp, 4
test eax, eax
jne 0x413954
mov dword [0x700d24], 0
mov eax, dword [ebp - 8]
pop esi
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret