Function at 0x40a5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a8ad
cmp dword [ebp + 0x10], 0
mov ebx, 1
je 0x40a906
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x21c], xmm0
jne 0x40a64e
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.00437080
add esp, 0x10
test eax, eax
je 0x40a8ad
push 0x26e
push 0x188
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov eax, dword [ebp - 0x210]
add eax, 6
push eax
mov eax, dword [ebp - 0x214]
add eax, 6
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x40a6c2
push str._GetLastError_
push str.:4:PrintChangeRequest___FAILED:_CreateCompatibleBitmap___FAILED_during_a_print_screen_session:__s
call fcn.00424a90
add esp, 8
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push ebx
mov dword [ebp - 0x224], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_FloodFill]
push edi
push ebx
mov dword [edi + 0x1cc], 0
mov dword [edi + 0x1c8], 4
call fcn.00405ab0
mov edi, eax
add esp, 8
test edi, edi
je 0x40a853
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e69c0
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40a78f
push str._GetLastError_
push str.:5:PrintChangeRequest___EAP:_GetTempPath___FAILED:__s
call fcn.00424a90
add esp, 8
push 0x104
push 0
push 0
call fcn.0047dbc0
add esp, 8
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a9a20
add esp, 0xc
call fcn.004eeaba
mov esi, eax
call fcn.004d9850
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov esi, edx
call fcn.004eeaba
add eax, esi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004a94b0
lea eax, [ebp - 0x108]
push str.ChangeReq_
push eax
call fcn.004a3cc0
push 0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00429ac0
lea eax, [ebp - 0x108]
push eax
call fcn.004a8490
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a7ad0
movups xmm0, xmmword [ebp - 0x21c]
add esp, 0x30
push 0x61
sub esp, 0x10
mov eax, esp
push ebx
movups xmmword [eax], xmm0
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bb40
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004a85d0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.004132a0
mov esi, dword [ebp - 0x220]
add esp, 0x2c
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x40a865
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x40a870
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x40a87b
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
jne 0x40a8c0
cmp dword [ebp + 0xc], edi
jne 0x40a8a0
push 0x50e3a0
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 edi
push edi
push edi
push 1
call fcn.00437650
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrintHdcToJpeg___FAILED.
call fcn.00424a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
jne 0x40a8f0
push 7
call fcn.00438030
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 str.__Print_Success__
push 0
push 0
push 0x437600
push 0
push 0xffffffffffffffff
push 1
push 0
call fcn.004376b0
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov eax, dword [0x585298]
test eax, eax
jne 0x40a934
call fcn.00481070
push 0
push eax
mov dword [0x585298], eax
call fcn.00489bb0
push dword [0x585298]
call fcn.0048d200
mov eax, dword [0x585298]
add esp, 0xc
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push 0
push eax
push 0x489be0
push 1
push 0
call fcn.00437680
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x40aa52
push esi
mov dword [0x585298], esi
call fcn.0048a050
add esp, 4
mov dword [edi + 0x1cc], 0
push 0
push 1
push 0x1d0
push edi
push fcn.00405ab0
push str.Change_Request
push esi
test eax, eax
je 0x40a9a4
mov dword [edi + 0x1c8], 2
call fcn.0048a910
add esp, 0x1c
mov ebx, eax
jmp 0x40a9dc
mov dword [edi + 0x1c8], 0
call fcn.0048a910
push 0
push 1
push 0x1d0
push edi
push fcn.00405ab0
push str.Change_Request_Duplicate
push esi
mov ebx, eax
mov dword [edi + 0x1c8], 1
call fcn.0048a910
add esp, 0x38
test ebx, ebx
jne 0x40aa12
cmp dword [ebp + 0xc], ebx
jne 0x40aa01
push 0x50e3a0
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.00437650
add esp, 0x1c
push str.:9:PrintChangeRequest___FAILED:_PrinterPrintForm___FAILED.
call fcn.00424a90
add esp, 4
xor ebx, ebx
jmp 0x40aa52
cmp dword [ebp + 0xc], 0
jne 0x40aa4d
push 4
call fcn.00438030
push 0
push 0
push esi
call fcn.00489f10
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 0x437600
push 0
push 0xffffffffffffffff
push 1
push 0
call fcn.004376b0
add esp, 0x38
mov ebx, 1
push dword [0x585298]
call fcn.00487770
add esp, 4
test eax, eax
jne 0x40aa69
mov dword [0x585298], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret