Function at 0x41f560
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe73
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x220], esi
call fcn.0041f3b0
test al, al
je 0x41fb48
push 3
xor eax, eax
xor ebx, ebx
push 0x467d5c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00403570
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
call fcn.00420600
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x41f5f7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00444884
add esp, 4
xor ecx, ecx
mov eax, 7
push 3
mov word [ebp - 0x2c], cx
xor edx, edx
push 0x467d64
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.00403570
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00420600
add esp, 4
mov esi, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], esi
jb 0x41f652
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00444884
add esp, 4
mov eax, dword [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jae 0x41f66d
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41face
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x80]
call fcn.00420580
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x214]
add edx, 0x2c
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.00404240
mov edi, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x6c], edi
jb 0x41f6b9
mov eax, dword [ebp - 0x80]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
mov word [ebp - 0x80], cx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x18], edi
jae 0x41f6d4
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x41f6df
lea eax, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41fa87
mov eax, dword [ebp - 0xb8]
cmp dword [ebp - 0xa4], edi
jae 0x41f703
lea eax, [ebp - 0xb8]
push eax
call fcn.00401000
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
cmp esi, ebx
je 0x41fa3f
push 0x30
call fcn.00444804
add esp, 4
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x41f745
mov edi, eax
call fcn.0040f200
mov edi, eax
mov dword [ebp - 0x218], edi
jmp 0x41f74d
mov dword [ebp - 0x218], ebx
mov edi, ebx
mov byte [ebp - 4], 8
cmp edi, ebx
je 0x41fa2e
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 4]
sub ecx, eax
push ecx
push eax
mov ecx, edi
call edx
lea eax, [ebp - 0x2c]
mov ebx, edi
call fcn.0040f520
mov eax, edi
call fcn.0040f3b0
mov ecx, dword [edi + 0x1c]
push eax
mov dword [ebp - 0x230], eax
call fcn.0042f4f0
sub esp, 0x14
mov dword [ebp - 0x238], esp
mov eax, esp
je 0x41f7a5
mov dword [eax], vtable.std::tr1::_Impl_base1_void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], vtable.._AV___Impl_no_alloc1_U___Callable_obj_V_lambda0___A0x4936b163_LanAgent___0A__tr1_std__XABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__3__tr1_std__.0
mov dword [eax + 0x10], eax
push str.LanAgent::laPrinterMonitor::ProcessJobFile
sub esp, 0x1c
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x234], esp
push str.__s_Befor_log_guard.
call fcn.00403660
lea ebx, [ebp - 0x64]
call fcn.0040e7c0
add esp, 0x20
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x1c0]
push eax
mov byte [ebp - 4], 0xc
call fcn.00413dd0
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.00404210
mov ecx, dword [0x477d70]
mov esi, dword [ecx + 0x54]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + eax*4]
lea esi, [ebp - 0x228]
call fcn.00413c30
sub esp, 0x18
mov dword [ebp - 0x234], esp
mov eax, esp
je 0x41f831
mov dword [eax], vtable.std::tr1::_Impl_base1_void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], vtable.._AV___Impl_no_alloc1_U___Callable_obj_V_lambda1___A0x4936b163_LanAgent___0A__tr1_std__XABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__3__tr1_std__.0
mov dword [eax + 0x10], eax
push str.LanAgent::laPrinterMonitor::ProcessJobFile
sub esp, 0x1c
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x238], esp
push str.__s_After_log_guard.
call fcn.00403660
lea ebx, [ebp - 0x64]
call fcn.0040e7c0
add esp, 0x20
mov byte [ebp - 4], 0x11
push eax
lea edx, [ebp - 0x210]
push edx
mov byte [ebp - 4], 0x12
call fcn.00413dd0
mov ecx, ebx
mov byte [ebp - 4], 0x14
call fcn.00404210
cmp byte [ebp - 0x228], 0
jne 0x41f955
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebx]
lea esi, [ebp - 0x16c]
call fcn.0040e6d0
mov edi, eax
push 5
push 3
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 0x15
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x16
cmp dword [edi + 0x14], 8
jb 0x41f8c0
mov edi, dword [edi]
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
push eax
push str.LanAgent::laPrinterMonitor::ProcessJobFile
push str.__s_Unable_to_acquire_log_guard__d_.__s
call fcn.00405b80
add esp, 0x10
lea esi, [ebp - 0x150]
call fcn.00405e90
lea ecx, [ebp - 0x16c]
call fcn.00404210
lea esi, [ebp - 0x210]
mov byte [ebp - 4], 0xf
call fcn.00413c60
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea esi, [ebp - 0x1c0]
mov byte [ebp - 4], 8
call fcn.00413c60
lea ecx, [ebp - 0x2c]
call fcn.00404210
lea ecx, [ebp - 0x48]
call fcn.00404210
lea ecx, [ebp - 0xb8]
call fcn.00404210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
push 0xb
push 0
lea esi, [ebp - 0x150]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x17
mov ebx, dword [ebp - 0x214]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
push eax
push str.LanAgent::laPrinterMonitor::ProcessJobFile
push str.__s_Log_guard__d__acquired
call fcn.00405b80
add esp, 0xc
lea esi, [ebp - 0x150]
mov byte [ebp - 4], 0x14
call fcn.00405e90
lea eax, [ebx + 0x10]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x41f9aa
mov eax, dword [eax]
push eax
call fcn.00401190
mov esi, eax
add esp, 4
mov dword [ebp - 0x214], esi
test esi, esi
je 0x41f9f0
call fcn.0040f430
mov eax, dword [ebp - 0x230]
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 4]
push eax
push ecx
mov ecx, esi
call edx
mov edi, esi
call fcn.0040f480
lea esi, [ebp - 0x214]
call fcn.0040fba0
mov edi, dword [ebp - 0x218]
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea esi, [ebp - 0x210]
mov byte [ebp - 4], 0xf
call fcn.00413c60
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea esi, [ebp - 0x1c0]
mov byte [ebp - 4], bl
call fcn.00413c60
mov esi, dword [ebp - 0x21c]
xor ebx, ebx
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, 8
jmp 0x41fabb
push 6
push 4
lea esi, [ebp - 0x150]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Printer_monitor_couldnt_open_log_file._Error_code:_d
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x150]
call fcn.00405e90
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x41fa7e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41fabb
push 6
push 4
lea esi, [ebp - 0x150]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Printer_monitor_couldnt_move_pdf_file._Error_code:_d
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x150]
call fcn.00405e90
cmp dword [ebp - 0x18], edi
jb 0x41fb07
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00444884
add esp, 4
jmp 0x41fb07
push 6
push 4
lea esi, [ebp - 0x150]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Printer_monitor_couldnt_open_pdf_file._Error_code:_d
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x150]
call fcn.00405e90
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x41fb18
mov edx, dword [ebp - 0x48]
push edx
call fcn.00444884
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0xa4], edi
jb 0x41fb81
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00444884
add esp, 4
jmp 0x41fb81
push 6
push 4
lea esi, [ebp - 0x150]
call fcn.00405930
push str.Printer_monitor_couldnt_create_pdf_file._See_convert_log.
mov esi, eax
mov dword [ebp - 4], 0x1b
call fcn.00405b80
add esp, 4
lea esi, [ebp - 0x150]
mov dword [ebp - 4], 0xffffffff
call fcn.00405e90
xor ebx, ebx
push 0x24
mov dword [ebp - 0x228], ebx
call fcn.00444804
add esp, 4
cmp eax, ebx
je 0x41fc7c
mov dword [eax], eax
mov dword [ebp - 0x22c], eax
mov dword [eax + 4], eax
mov dword [ebp - 4], 0x1c
mov edx, dword [ebp - 0x220]
lea ecx, [ebp - 0x9c]
call fcn.00420490
push 0x467f90
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040b490
add esp, 0xc
lea edi, [ebp - 0x22c]
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.00401680
mov esi, 8
mov byte [ebp - 4], 0x1d
mov bl, al
cmp dword [ebp - 0x6c], esi
jb 0x41fc05
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00444884
add esp, 4
test bl, bl
je 0x41fc29
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov byte [ebp - 0x220], 0
mov edx, dword [ebp - 0x220]
push edx
push eax
push ecx
call fcn.00420260
add esp, 0xc
cmp dword [ebp - 0x88], esi
jb 0x41fc40
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
lea ebx, [ebp - 0x22c]
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], cx
call fcn.00402400
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00444884
add esp, 4
jmp 0x41f939
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x21c], ebx
call fcn.00444d6a
push 0x46d608
lea ecx, [ebp - 0x244]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004474c8
int3