Function at 0x48c490
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x601018]
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 ebx, ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x844]
push 0
push eax
mov ecx, str.request.subdocument
mov dword [ebp - 0x414], ebx
call fcn.004fd0e0
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x48c5c0
lea esi, [ebx + 0x24]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
push 0x5bc564
mov dword [esi], 0x14
mov ecx, dword [eax + 0x844]
push 0x100
lea edi, [ebx + 0x48]
push ecx
mov ecx, edi
mov edx, str.request.jobname
call fcn.004fd410
cmp byte [edi], 0
je 0x48c52c
mov dword [ebx + 0x28], edi
jmp 0x48c533
mov dword [ebx + 0x28], str.Vault_Document
lea edx, [ebp - 0x410]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll__getcwd]
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x311e34]
push esi
push ecx
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jg 0x48c5a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 4]
push eax
push str.unable_to_start_print_job__code__d_
mov edi, 0x12305
call fcn.004526c0
add esp, 8
lea edx, [ebp - 0x410]
push edx
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x48c98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48c98b
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x48c5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 0x20]
mov ecx, dword [esi + 0x14]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x418], edi
test cl, 2
je 0x48c713
cmp dword [esi + 0x20], eax
jbe 0x48c5f3
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
add ecx, 8
dec edx
lea eax, [eax + esi + 1]
jne 0x48c5e4
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x840], edi
je 0x48c612
mov ecx, dword [ecx + 0x840]
mov esi, dword [ecx]
cdq
push edx
push eax
mov eax, dword [esi + 0x18]
push 0
push 1
call eax
mov ecx, dword [ebx + 0x20]
xor edi, edi
cmp dword [ecx + 0x20], edi
jbe 0x48c902
mov edx, dword [ebx + 0x20]
mov eax, dword [edx + 0x28]
mov edx, dword [eax + edi*8]
mov ecx, dword [ebx]
mov dword [ecx + 0x19dd34], edx
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebx]
mov eax, dword [edx + 0x19dd34]
cmp eax, dword [ecx + edi*8 + 4]
ja 0x48c6dd
lea esp, [esp]
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], 0
je 0x48c671
mov ecx, dword [eax + 0x840]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jne 0x48c6f9
mov eax, dword [ebx + 4]
inc dword [ebp - 0x418]
cmp dword [eax + 0x840], 0
je 0x48c699
mov ecx, dword [eax + 0x840]
mov eax, dword [ebp - 0x418]
mov esi, dword [ecx]
cdq
push edx
mov edx, dword [esi + 0x1c]
push eax
call edx
mov esi, dword [ebp - 0x414]
mov ebx, dword [ebx + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
call fcn.0046ff90
test eax, eax
jne 0x48c705
cmp dword [esi + 0xc], eax
jne 0x48c8fc
mov ecx, esi
mov eax, dword [ecx]
inc dword [eax + 0x19dd34]
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + 0x28]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x19dd34]
mov ebx, esi
cmp ecx, dword [edx + edi*8 + 4]
jbe 0x48c650
cmp dword [ebx + 0xc], 0
jne 0x48c902
mov edx, dword [ebx + 0x20]
inc edi
cmp edi, dword [edx + 0x20]
jb 0x48c620
jmp 0x48c902
mov dword [ebx + 0xc], 0x12317
jmp 0x48c902
mov dword [esi + 0xc], 0x12318
mov ebx, esi
jmp 0x48c902
test cl, 1
jne 0x48c807
test ecx, 0x400000
jne 0x48c807
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], edi
je 0x48c74f
mov ecx, dword [eax + 0x840]
mov eax, dword [ebx]
mov eax, dword [eax + 0x19dce4]
mov esi, dword [ecx]
cdq
push edx
mov edx, dword [esi + 0x18]
push eax
push 0
push 1
call edx
mov eax, dword [ebx]
mov dword [eax + 0x19dd34], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 0x19dd34]
cmp ecx, dword [eax + 0x19dce4]
jg 0x48c902
nop
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], 0
je 0x48c78d
mov ecx, dword [eax + 0x840]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jne 0x48c7ed
mov eax, dword [ebx + 4]
inc edi
cmp dword [eax + 0x840], 0
je 0x48c7ac
mov ecx, dword [eax + 0x840]
mov esi, dword [ecx]
mov eax, edi
cdq
push edx
mov edx, dword [esi + 0x1c]
push eax
call edx
mov esi, dword [ebp - 0x414]
mov ebx, dword [ebx + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
call fcn.0046ff90
test eax, eax
jne 0x48c7f9
cmp dword [esi + 0xc], eax
jne 0x48c8fc
mov ecx, esi
mov eax, dword [ecx]
inc dword [eax + 0x19dd34]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x19dd34]
mov ebx, esi
cmp ecx, dword [eax + 0x19dce4]
jle 0x48c770
jmp 0x48c902
mov dword [ebx + 0xc], 0x1231b
jmp 0x48c902
mov dword [esi + 0xc], 0x1231c
mov ebx, esi
jmp 0x48c902
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], edi
je 0x48c827
mov ecx, dword [eax + 0x840]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 0
push 1
push 0
push 1
call eax
mov eax, dword [ebx]
mov esi, 1
mov dword [eax + 0x311ee8], edi
mov dword [eax + 0x311ef0], esi
mov ecx, dword [eax + 0x311f04]
sub ecx, dword [eax + 0x311f00]
sar ecx, 3
test ecx, ecx
je 0x48c85d
mov edx, dword [eax + 0x311f00]
mov ecx, dword [edx]
mov dword [eax + 0x311eec], ecx
jmp 0x48c863
mov dword [eax + 0x311eec], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 0x311ee8]
test ecx, ecx
js 0x48c88a
mov edx, dword [eax + 0x311f04]
sub edx, dword [eax + 0x311f00]
sar edx, 3
cmp ecx, edx
jae 0x48c88a
mov ecx, dword [eax + 0x311eec]
jmp 0x48c88c
mov ecx, esi
mov dword [eax + 0x19dd34], ecx
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], edi
je 0x48c8b9
mov eax, dword [eax + 0x840]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x48c8b9
mov dword [ebx + 0xc], 0x12319
jmp 0x48c902
mov eax, dword [ebx + 4]
cmp dword [eax + 0x840], edi
je 0x48c8d4
mov ecx, dword [eax + 0x840]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0
push esi
call eax
mov ecx, dword [ebp - 0x414]
mov eax, dword [ecx + 4]
mov ebx, dword [ebx + 8]
mov ecx, dword [ecx]
call fcn.0046ff90
test eax, eax
je 0x48c8fc
mov ecx, dword [ebp - 0x414]
mov dword [ecx + 0xc], 0x1231a
mov ebx, ecx
jmp 0x48c902
mov ebx, dword [ebp - 0x414]
cmp dword [ebp - 0x41c], 0
jne 0x48c972
cmp dword [ebx + 0xc], 0
je 0x48c940
mov edx, dword [ebx]
mov eax, dword [edx + 0x311e34]
push eax
call dword [sym.imp.GDI32.dll_AbortDoc]
cmp eax, 0xffffffff
jne 0x48c972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 4]
push eax
push str.unable_to_abort_print_job__code__d_
mov edi, 0x12306
call fcn.004526c0
jmp 0x48c96f
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x311e34]
push edx
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x48c972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 4]
push eax
push str.unable_to_finish_print_job__code__d_
mov edi, 0x12306
call fcn.004526c0
mov dword [ebx + 0xc], eax
add esp, 8
mov ebx, dword [ebx + 4]
cmp dword [ebx + 0x840], 0
je 0x48c98b
mov ecx, dword [ebx + 0x840]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
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.00596083
mov esp, ebp
pop ebp
ret