Function at 0x40dcd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x228], esi
jne 0x40dd03
xor eax, eax
jmp 0x40e30a
xor edi, edi
inc edi
call fcn.00415b70
test eax, eax
je 0x40df1c
xor eax, eax
mov dword [ebp - 0x23c], ebx
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str._nPrint_to_the_Webinar_virtual_printer___Y_N__n_nYes___No
stosd dword es:[edi], eax
push str.__Ready_To_Print___
xor eax, eax
push ebx
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], bx
push ebx
stosw word es:[edi], ax
call fcn.00435aa1
add esp, 0x10
test eax, eax
je 0x40dcfc
push 0x336
push 0x4d0
push ebx
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x230]
add eax, 6
push eax
mov eax, dword [ebp - 0x234]
add eax, 6
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push ebx
mov dword [ebp - 0x224], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x224], ebx
jne 0x40ddbe
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_Webinar_session:__s
call fcn.004265da
pop ecx
pop ecx
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0xffffff
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push ebx
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_FloodFill]
push esi
push dword [ebp - 0x220]
mov word [ebp - 0x22c], 0x34
mov word [ebp - 0x22a], bx
mov eax, dword [ebp - 0x22c]
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1c8], 2
call fcn.0040b49b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40de7c
mov eax, dword [ebp - 0x238]
lea esi, [ebp - 0x23c]
lea edi, [ebp - 0x24c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
add eax, 0x20
mov dword [ebp - 0x248], eax
mov edi, esp
push dword [ebp - 0x220]
lea esi, [ebp - 0x24c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004072f0
add esp, 0x14
mov esi, eax
cmp dword [ebp - 0x228], ebx
je 0x40de96
push dword [ebp - 0x228]
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x224], ebx
je 0x40deaa
push dword [ebp - 0x224]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x220], ebx
je 0x40debe
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, ebx
jne 0x40deeb
push 0x536a30
push str.The_Webinar_form_printing_encountered_an_ERROR__n_nPress_any_key...
push str.__Print_Error__
push ebx
push ebx
push ebx
push 1
call fcn.00436110
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.004265da
pop ecx
jmp 0x40df15
push 4
pop ecx
call fcn.004361f2
push str.The_Change_Request_has_been_printed_to:_n_Webinar_DEMO_Printer__n_nPress_any_key_to_continue...
push str.__Print_Success__
push ebx
push ebx
push 0x4363c1
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.004361aa
xor ebx, ebx
add esp, 0x24
inc ebx
mov eax, ebx
jmp 0x40e30a
cmp dword [ebp + 8], ebx
je 0x40e1b9
mov dword [ebp - 0x23c], ebx
xor eax, eax
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
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___
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
call fcn.00435aa1
add esp, 0x10
test eax, eax
je 0x40dcfc
push 0x26e
push 0x188
push ebx
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x230]
add eax, 6
push eax
mov eax, dword [ebp - 0x234]
add eax, 6
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push ebx
mov dword [ebp - 0x224], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x224], ebx
jne 0x40dfc3
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.004265da
pop ecx
pop ecx
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0xffffff
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push ebx
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_FloodFill]
push esi
push dword [ebp - 0x220]
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1c8], 4
call fcn.0040b49b
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40e13b
mov esi, 0x103
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.005117f0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
inc esi
test eax, eax
jne 0x40e09e
push str._GetLastError_
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.004265da
push ebx
push ebx
call fcn.0048a119
push eax
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.004c3b66
add esp, 0x14
call fcn.004f16be
mov edi, eax
call fcn.00512297
xor edx, edx
div edi
mov edi, edx
call fcn.00512297
add eax, edi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004c53b7
mov ecx, str.ChangeReq_
lea ebx, [ebp - 0x114]
call fcn.004c42f0
mov eax, ebx
push 0
push eax
call fcn.00429dfa
mov eax, ebx
call fcn.004c3eab
mov edx, ebx
lea ecx, [ebp - 0x21c]
call fcn.004c40f5
pop ecx
pop ecx
mov edi, esp
lea esi, [ebp - 0x23c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x61
push dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
call fcn.00440948
lea esi, [ebp - 0x21c]
mov edi, eax
call fcn.004c3e68
mov eax, esi
push eax
mov eax, ebx
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.004154ff
add esp, 0x24
xor ebx, ebx
cmp dword [ebp - 0x228], ebx
je 0x40e155
push dword [ebp - 0x228]
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x224], ebx
je 0x40e169
push dword [ebp - 0x224]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x220], ebx
je 0x40e17d
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, ebx
jne 0x40e1a7
push 0x536a30
push str.An_error_occurred_while_generating_the_image__nPlease_try_printing_to_a_local_printer_instead._n_nPress_any_key...
push str.__Print_Error__
push ebx
push ebx
push ebx
push 1
call fcn.00436110
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
jmp 0x40dee3
push 7
pop ecx
call fcn.004361f2
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...
jmp 0x40def8
cmp dword [0x5d9878], ebx
jne 0x40e1de
call fcn.0048cd9b
push ebx
mov esi, eax
mov dword [0x5d9878], eax
call fcn.00496162
mov eax, dword [0x5d9878]
pop ecx
call fcn.0049647f
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push ebx
push dword [0x5d9878]
push 0x496177
push 1
push ebx
call fcn.0043617f
mov esi, eax
add esp, 0x1c
cmp esi, ebx
mov dword [ebp - 0x224], esi
je 0x40e2f4
mov dword [0x5d9878], esi
call fcn.004964fe
test eax, eax
mov ecx, str.Change_Request
je 0x40e247
mov eax, dword [ebp - 0x228]
push esi
mov dword [eax + 0x1c8], 2
mov dword [eax + 0x1cc], ebx
call fcn.00495eb5
mov dword [ebp - 0x228], eax
jmp 0x40e28d
mov esi, dword [ebp - 0x228]
push dword [ebp - 0x224]
lea edi, [esi + 0x1c8]
mov eax, esi
mov dword [edi], ebx
mov dword [esi + 0x1cc], ebx
call fcn.00495eb5
pop ecx
push dword [ebp - 0x224]
mov dword [ebp - 0x228], eax
mov eax, esi
mov ecx, str.Change_Request_Duplicate
mov dword [edi], 1
call fcn.00495eb5
mov esi, dword [ebp - 0x224]
cmp dword [ebp - 0x228], ebx
pop ecx
jne 0x40e2c1
push 0x536a30
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 ebx
push ebx
push ebx
push 1
call fcn.00436110
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.004265da
pop ecx
xor edi, edi
jmp 0x40e2f4
push 4
pop ecx
call fcn.004361f2
push ebx
xor eax, eax
call fcn.00496717
pop ecx
push eax
push str.The_Change_Request_has_been_printed_to:_n__s__n_nPress_any_key_to_continue...
push str.__Print_Success__
push ebx
push ebx
push 0x4363c1
push ebx
xor edi, edi
push 0xffffffffffffffff
inc edi
push edi
push ebx
call fcn.004361aa
add esp, 0x28
mov eax, dword [0x5d9878]
call fcn.00499b28
test eax, eax
jne 0x40e308
mov dword [0x5d9878], ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret