Function at 0x4bacf6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x234], esi
cmp esi, ebx
jne 0x4bad21
xor eax, eax
jmp 0x4bb0f5
xor edi, edi
inc edi
cmp dword [ebp + 8], ebx
je 0x4bafad
mov dword [ebp - 0x22c], ebx
xor eax, eax
lea edi, [ebp - 0x228]
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.0049ac01
add esp, 0x10
test eax, eax
je 0x4bad1a
push 0x26e
push 0x188
push ebx
push ebx
lea eax, [ebp - 0x22c]
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 - 0x230], eax
mov eax, dword [ebp - 0x220]
add eax, 6
push eax
mov eax, dword [ebp - 0x224]
add eax, 6
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push ebx
mov dword [ebp - 0x238], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x238]
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0xffffff
push edi
push dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push ebx
push ebx
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_FloodFill]
push esi
push dword [ebp - 0x230]
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1c8], 4
call fcn.004b8d98
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4baf18
mov esi, 0x103
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call fcn.00401f80
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
inc esi
test eax, eax
jne 0x4bae7a
push ebx
push ebx
call fcn.004623aa
push eax
mov ecx, esi
lea eax, [ebp - 0x114]
call fcn.00444961
add esp, 0xc
call fcn.0041df75
mov edi, eax
call fcn.0040237f
xor edx, edx
div edi
mov edi, edx
call fcn.0040237f
add eax, edi
push eax
push str.ChangeReq__d.jpg
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004451a8
mov ecx, str.ChangeReq_
lea ebx, [ebp - 0x114]
call fcn.00446c67
mov eax, ebx
push 0
push eax
call fcn.004a2105
mov eax, ebx
call fcn.00444748
mov edx, ebx
lea ecx, [ebp - 0x21c]
call fcn.00446954
pop ecx
pop ecx
mov edi, esp
push dword [ebp - 0x230]
lea esi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
call fcn.004973a9
add esp, 0x14
lea esi, [ebp - 0x21c]
mov edi, eax
call fcn.00444789
mov eax, esi
push eax
mov eax, ebx
push eax
push str.START__Change_Request___D___s___MAX___s_
call fcn.004ad7b3
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x234], ebx
je 0x4baf32
push dword [ebp - 0x234]
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x238], ebx
je 0x4baf46
push dword [ebp - 0x238]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x230], ebx
je 0x4baf5a
push dword [ebp - 0x230]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, ebx
jne 0x4baf7c
push 0x4ce1b0
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.0049aacd
add esp, 0x1c
jmp 0x4bafa6
push 7
pop eax
call fcn.00498e11
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 ebx
push ebx
push 0x49a008
push ebx
push 0xffffffffffffffff
push 1
push ebx
call fcn.0049aa14
xor ebx, ebx
add esp, 0x24
inc ebx
mov eax, ebx
jmp 0x4bb0f5
cmp dword [0x51c1c8], ebx
jne 0x4bafd2
call fcn.00454203
push ebx
mov esi, eax
mov dword [0x51c1c8], eax
call fcn.004557fe
mov eax, dword [0x51c1c8]
pop ecx
call fcn.004554f7
push str._nPlease_select_a_printer_from_the_pop_up_menu_to_continue._n
push str.__Select_Printer__
push ebx
push dword [0x51c1c8]
push 0x45cc31
push 1
push ebx
call fcn.0049aa5c
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x4bb0df
mov dword [0x51c1c8], esi
call fcn.0045548f
mov ecx, str.Change_Request
test eax, eax
je 0x4bb03b
mov eax, dword [ebp - 0x234]
push esi
mov dword [eax + 0x1c8], 2
mov dword [eax + 0x1cc], ebx
call fcn.0045ce49
mov dword [ebp - 0x234], eax
jmp 0x4bb083
mov esi, dword [ebp - 0x234]
push dword [ebp - 0x238]
mov eax, esi
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
call fcn.0045ce49
pop ecx
push dword [ebp - 0x238]
mov dword [ebp - 0x234], eax
mov eax, esi
mov ecx, str.Change_Request_Duplicate
mov dword [esi + 0x1c8], 1
call fcn.0045ce49
mov esi, dword [ebp - 0x238]
pop ecx
cmp dword [ebp - 0x234], ebx
jne 0x4bb0ac
push 0x4ce1b0
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.0049aacd
add esp, 0x1c
xor edi, edi
jmp 0x4bb0df
push 4
pop eax
call fcn.00498e11
push ebx
xor eax, eax
call fcn.0045522b
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 0x49a008
push ebx
xor edi, edi
push 0xffffffffffffffff
inc edi
push edi
push ebx
call fcn.0049aa14
add esp, 0x28
mov eax, dword [0x51c1c8]
call fcn.00453c03
test eax, eax
jne 0x4bb0f3
mov dword [0x51c1c8], ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret