Function at 0x4098ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x224], edi
test edi, edi
je 0x409d00
xor esi, esi
xor ebx, ebx
inc esi
cmp dword [ebp + 0x10], ebx
je 0x409ba3
xor eax, eax
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], ebx
jne 0x40990f
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.0042beeb
add esp, 0x10
test eax, eax
je 0x409d00
push 0x26e
push 0x188
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [ebp - 0x210]
add eax, 6
mov dword [ebp - 0x22c], edi
push eax
mov eax, dword [ebp - 0x214]
add eax, 6
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x409984
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.0041c80a
pop ecx
pop ecx
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push edi
mov dword [ebp - 0x228], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_FloodFill]
mov eax, dword [ebp - 0x224]
push eax
push edi
mov dword [eax + 0x1cc], ebx
mov dword [eax + 0x1c8], 4
call fcn.004051c0
mov dword [ebp - 0x224], eax
pop ecx
pop ecx
test eax, eax
je 0x409b0e
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push ebx
push eax
call fcn.004c37f0
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004c37f0
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x409a46
push str._GetLastError_
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.0041c80a
pop ecx
pop ecx
push edi
push ebx
push ebx
call fcn.0046aa0e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0048dd2a
add esp, 0xc
call fcn.004ccf29
mov esi, eax
call fcn.004b729a
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov esi, edx
call fcn.004ccf29
add eax, esi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0048d960
lea eax, [ebp - 0x108]
push str.ChangeReq_
push eax
call fcn.0048a927
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00420955
lea eax, [ebp - 0x108]
push eax
call fcn.0048ccf5
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0048c896
add esp, 0x30
lea esi, [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push 0x61
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x22c]
push edi
push eax
call fcn.004300c1
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.004104f1
mov esi, dword [ebp - 0x220]
add esp, 0x2c
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x409b20
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x409b2b
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x409b36
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x224], ebx
jne 0x409b6c
cmp dword [ebp + 0xc], ebx
jne 0x409b5f
push str._360_545_6605
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.0042c3e6
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
call fcn.0041c80a
pop ecx
jmp 0x409b9c
cmp dword [ebp + 0xc], ebx
jne 0x409b99
push 7
call fcn.0042cd12
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 0x42c39d
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.0042c43a
add esp, 0x24
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x409d02
mov eax, dword [0x563298]
test eax, eax
jne 0x409bd0
call fcn.0046df23
push ebx
push eax
mov dword [0x563298], eax
call fcn.004759a8
push dword [0x563298]
call fcn.00478802
mov eax, dword [0x563298]
add esp, 0xc
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push ebx
push eax
push 0x4759c7
push esi
push ebx
call fcn.0042c40f
add esp, 0x1c
mov dword [ebp - 0x220], eax
test eax, eax
je 0x409ce6
push eax
mov dword [0x563298], eax
call fcn.00475cda
mov dword [edi + 0x1cc], ebx
pop ecx
push ebx
push esi
push 0x1d0
push edi
push fcn.004051c0
push str.Change_Request
test eax, eax
je 0x409c3c
mov dword [edi + 0x1c8], 2
mov edi, dword [ebp - 0x220]
push edi
call fcn.00476383
add esp, 0x1c
jmp 0x409c80
push dword [ebp - 0x220]
mov dword [edi + 0x1c8], ebx
call fcn.00476383
push ebx
push esi
push 0x1d0
push edi
push fcn.004051c0
mov dword [edi + 0x1c8], esi
mov edi, dword [ebp - 0x220]
push str.Change_Request_Duplicate
push edi
mov dword [ebp - 0x228], eax
call fcn.00476383
mov eax, dword [ebp - 0x228]
add esp, 0x38
test eax, eax
jne 0x409cb3
cmp dword [ebp + 0xc], ebx
jne 0x409ca4
push str._360_545_6605
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 esi
call fcn.0042c3e6
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.0041c80a
pop ecx
mov esi, ebx
jmp 0x409ce6
cmp dword [ebp + 0xc], ebx
jne 0x409ce6
push 4
call fcn.0042cd12
push ebx
push ebx
push edi
call fcn.00475c11
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 0x42c39d
push ebx
push 0xffffffffffffffff
push esi
push ebx
call fcn.0042c43a
add esp, 0x38
push dword [0x563298]
call fcn.00473a96
pop ecx
test eax, eax
jne 0x409cfc
mov dword [0x563298], ebx
mov eax, esi
jmp 0x409d02
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret