Function at 0x40aa90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x59a240]
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 0x40aee3
xor esi, esi
xor ebx, ebx
inc esi
cmp dword [ebp + 0x10], ebx
je 0x40ad86
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 0x40aaf2
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.004341d0
add esp, 0x10
test eax, eax
je 0x40aee3
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 0x40ab67
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.004255b9
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.00406317
mov dword [ebp - 0x224], eax
pop ecx
pop ecx
test eax, eax
je 0x40acf1
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push ebx
push eax
call fcn.004e4da0
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e4da0
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40ac29
push str._GetLastError_
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.004255b9
pop ecx
pop ecx
push edi
push ebx
push ebx
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
add esp, 0xc
call fcn.004ee499
mov esi, eax
call fcn.004ca9ca
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov esi, edx
call fcn.004ee499
add eax, esi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004a0ddb
lea eax, [ebp - 0x108]
push str.ChangeReq_
push eax
call fcn.0049d9e2
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00429ec2
lea eax, [ebp - 0x108]
push eax
call fcn.004a0109
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049fcaa
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.0043edfc
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a025a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.0041218d
mov esi, dword [ebp - 0x220]
add esp, 0x2c
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40ad03
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x40ad0e
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x40ad19
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x224], ebx
jne 0x40ad4f
cmp dword [ebp + 0xc], ebx
jne 0x40ad42
push 0x50e360
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.004346cb
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
call fcn.004255b9
pop ecx
jmp 0x40ad7f
cmp dword [ebp + 0xc], ebx
jne 0x40ad7c
push 7
call fcn.00434ff7
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 0x434682
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.0043471f
add esp, 0x24
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x40aee5
mov eax, dword [0x59dbe0]
test eax, eax
jne 0x40adb3
call fcn.00480833
push ebx
push eax
mov dword [0x59dbe0], eax
call fcn.004882fe
push dword [0x59dbe0]
call fcn.0048b15a
mov eax, dword [0x59dbe0]
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 0x48831d
push esi
push ebx
call fcn.004346f4
add esp, 0x1c
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40aec9
push eax
mov dword [0x59dbe0], eax
call fcn.00488630
mov dword [edi + 0x1cc], ebx
pop ecx
push ebx
push esi
push 0x1d0
push edi
push fcn.00406317
push str.Change_Request
test eax, eax
je 0x40ae1f
mov dword [edi + 0x1c8], 2
mov edi, dword [ebp - 0x220]
push edi
call fcn.00488cd9
add esp, 0x1c
jmp 0x40ae63
push dword [ebp - 0x220]
mov dword [edi + 0x1c8], ebx
call fcn.00488cd9
push ebx
push esi
push 0x1d0
push edi
push fcn.00406317
mov dword [edi + 0x1c8], esi
mov edi, dword [ebp - 0x220]
push str.Change_Request_Duplicate
push edi
mov dword [ebp - 0x228], eax
call fcn.00488cd9
mov eax, dword [ebp - 0x228]
add esp, 0x38
test eax, eax
jne 0x40ae96
cmp dword [ebp + 0xc], ebx
jne 0x40ae87
push 0x50e360
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.004346cb
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.004255b9
pop ecx
mov esi, ebx
jmp 0x40aec9
cmp dword [ebp + 0xc], ebx
jne 0x40aec9
push 4
call fcn.00434ff7
push ebx
push ebx
push edi
call fcn.00488567
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 0x434682
push ebx
push 0xffffffffffffffff
push esi
push ebx
call fcn.0043471f
add esp, 0x38
push dword [0x59dbe0]
call fcn.004863c5
pop ecx
test eax, eax
jne 0x40aedf
mov dword [0x59dbe0], ebx
mov eax, esi
jmp 0x40aee5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret