Function at 0x40e093
Capabilities:
Get common file path

Disassembly:
jmp 0x40e093
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x40e0c4
xor eax, eax
jmp 0x40e4cf
cmp dword [ebp + 0x1b8], ebx
mov dword [ebp - 0x68], 1
je 0x40e367
xor eax, eax
cmp dword [ebp + 0x1b4], ebx
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x40e102
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 ebx
push ebx
call fcn.004010d2
add esp, 0x10
test eax, eax
je 0x40e0bd
push 0x26e
push 0x188
push ebx
push ebx
lea eax, [ebp - 0x80]
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 - 0x68], eax
mov eax, dword [ebp - 0x74]
add eax, 6
push eax
mov eax, dword [ebp - 0x78]
add eax, 6
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push ebx
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x6c], ebx
jne 0x40e161
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.004020c2
pop ecx
pop ecx
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0xffffff
push edi
push dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push ebx
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_FloodFill]
push esi
push dword [ebp - 0x68]
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1c8], 4
call fcn.0040b87f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40e2ca
mov esi, 0x103
push esi
lea eax, [ebp + 0xa1]
push ebx
push eax
mov byte [ebp + 0xa0], bl
call fcn.00508d00
push esi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00508d00
add esp, 0x18
lea eax, [ebp + 0xa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
inc esi
test eax, eax
jne 0x40e222
push str._GetLastError_
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
push esi
push ebx
push ebx
call fcn.0040113b
pop ecx
pop ecx
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.00402abd
add esp, 0xc
call fcn.0050ea90
mov edi, eax
call fcn.00401e97
mov ecx, eax
mov eax, edi
xor edx, edx
div ecx
mov edi, edx
call fcn.0050ea90
add eax, edi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00402dbf
lea eax, [ebp + 0xa0]
push str.ChangeReq_
push eax
call fcn.0040310c
push ebx
lea eax, [ebp + 0xa0]
push ebx
push eax
call fcn.00401582
lea eax, [ebp + 0xa0]
push eax
call fcn.00403224
lea eax, [ebp + 0xa0]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00401758
add esp, 0x30
push 0x61
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x68]
lea esi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00401410
mov esi, eax
lea eax, [ebp - 0x64]
push eax
call fcn.00402a1d
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0xa0]
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.00403314
add esp, 0x2c
cmp dword [ebp - 0x70], ebx
je 0x40e2db
push dword [ebp - 0x70]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x6c], ebx
je 0x40e2e9
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x68], ebx
je 0x40e2f7
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, ebx
jne 0x40e32f
cmp dword [ebp + 0x1b4], ebx
jne 0x40e31f
push 0x586ed8
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.00401a64
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
call fcn.004020c2
pop ecx
jmp 0x40e0bd
cmp dword [ebp + 0x1b4], ebx
jne 0x40e35f
push 7
call fcn.004026e9
mov dword [esp], 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 str.__Print_Success__
push ebx
push ebx
push 0x401ad2
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.0040114f
add esp, 0x24
xor eax, eax
inc eax
jmp 0x40e4cf
cmp dword [0x62ed60], ebx
jne 0x40e38e
call fcn.00402c52
push ebx
push eax
mov dword [0x62ed60], eax
call fcn.004023ec
push dword [0x62ed60]
call fcn.004021f8
add esp, 0xc
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push ebx
push dword [0x62ed60]
push 0x402e73
push 1
push ebx
call fcn.004027a2
mov edi, eax
add esp, 0x1c
cmp edi, ebx
mov dword [ebp - 0x6c], edi
je 0x40e4b6
push edi
mov dword [0x62ed60], edi
call fcn.004015eb
test eax, eax
pop ecx
push ebx
push 1
push 0x1d0
mov dword [esi + 0x1cc], ebx
push esi
je 0x40e3fe
push fcn.0040b87f
push str.Change_Request
push edi
mov dword [esi + 0x1c8], 2
call fcn.004031cf
add esp, 0x1c
mov dword [ebp - 0x68], eax
jmp 0x40e43f
mov edi, fcn.0040b87f
push edi
push str.Change_Request
push dword [ebp - 0x6c]
mov dword [esi + 0x1c8], ebx
call fcn.004031cf
mov dword [ebp - 0x68], eax
push ebx
xor eax, eax
inc eax
push eax
push 0x1d0
push esi
push edi
push str.Change_Request_Duplicate
push dword [ebp - 0x6c]
mov dword [esi + 0x1c8], eax
call fcn.004031cf
mov edi, dword [ebp - 0x6c]
add esp, 0x38
cmp dword [ebp - 0x68], ebx
jne 0x40e478
cmp dword [ebp + 0x1b4], ebx
jne 0x40e468
push 0x586ed8
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.00401a64
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.004020c2
pop ecx
mov dword [ebp - 0x68], ebx
jmp 0x40e4b6
cmp dword [ebp + 0x1b4], ebx
jne 0x40e4af
push 4
call fcn.004026e9
push ebx
push ebx
push edi
call fcn.00403067
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 0x401ad2
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.0040114f
add esp, 0x38
mov dword [ebp - 0x68], 1
push dword [0x62ed60]
call fcn.0040299b
test eax, eax
pop ecx
jne 0x40e4cc
mov dword [0x62ed60], ebx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x1a8
leave
ret