Function at 0x4189ba
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0x74
mov eax, 0x4afce2
call fcn.004916e1
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00418304
mov dword [ebp - 4], ebx
lea eax, [edi + 0x524]
mov dword [edi], vtable.PrintRequestWnd.0
mov dword [edi + 0x10], vtable.PrintRequestWnd.1.0
mov dword [edi + 0x14], vtable.PrintRequestWnd.2.0
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], ebx
mov word [eax + 4], cx
lea esi, [edi + 0x540]
call fcn.004026a8
lea esi, [edi + 0x55c]
call fcn.004026a8
push ebx
push ebx
lea eax, [ebp - 0x2c]
call fcn.00431ce9
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.00439717
lea ecx, [ebp - 0x2c]
xor esi, esi
push ecx
mov byte [ebp - 4], 7
inc esi
mov ecx, eax
mov dword [ebp - 0x14], esi
call fcn.0040122b
add esp, 0xc
test al, al
je 0x418a56
cmp byte [ebp - 0x24], 7
mov byte [ebp + 0xf], bl
je 0x418a5a
mov byte [ebp + 0xf], 1
push ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 6
call fcn.00402abb
cmp byte [ebp + 0xf], bl
je 0x418a8a
push 0x10
push 0x4b8140
push 0x4bb424
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.printer
lea ecx, [ebp - 0x48]
call fcn.004026bb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x4b8448
mov byte [ebp - 4], 8
call fcn.004026bb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
lea esi, [ebp - 0x2c]
call fcn.00406a70
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x540]
mov byte [ebp - 4], 9
call fcn.00402991
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402abb
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00402abb
push str.docName
lea ecx, [ebp - 0x48]
call fcn.004026bb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x4b8448
mov byte [ebp - 4], 0xa
call fcn.004026bb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406a70
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x55c]
mov byte [ebp - 4], 0xb
call fcn.00402991
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402abb
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00402abb
cmp dword [edi + 0x554], ebx
je 0x418c1e
cmp dword [edi + 0x570], ebx
je 0x418c1e
push 0x4b87f4
lea ecx, [ebp - 0x48]
call fcn.004026bb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x4b8448
mov byte [ebp - 4], 0xc
call fcn.004026bb
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00406a70
add esp, 0x24
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xd
call fcn.004011eb
pop ecx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x524]
push ecx
mov byte [ebp - 4], 0xe
call fcn.00402b06
push ebx
push 1
lea esi, [ebp - 0x64]
call fcn.00402bb8
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00402abb
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00402abb
lea esi, [edi + 0x524]
cmp dword [esi + 0x18], 8
jb 0x418bef
mov eax, dword [esi + 4]
jmp 0x418bf2
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418c08
push 0x4b7ff0
push esi
call fcn.00402b91
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0043102f
mov eax, edi
call fcn.004917b9
ret 8
push 0x10
push 0x4b8140
push 0x4bb4bc
jmp 0x418a7c