Function at 0x1001a630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eaafd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x307c
call fcn.100c8100
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3074], eax
mov dword [ebp - 0x3070], 0xd
lea ecx, [ebp - 0x306c]
push ecx
call fcn.100465a0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push str.Get_Advanced_Link_Status_from_Device___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
cmp esi, ebx
je 0x1001a91a
push 0x800
push ebx
lea edx, [ebp - 0x81c]
push edx
call fcn.100c7d20
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001a6e0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x81e], 0x5c
jne 0x1001a71a
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001a703
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x81e], bx
push 0x800
push ebx
lea ecx, [ebp - 0x101c]
push ecx
call fcn.100c7d20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x81c]
push edx
push str._sINIT__d__d.xml
lea edx, [ebp - 0x101c]
call fcn.10005c50
add esp, 0x10
push 0x2710
push 0xf3
lea eax, [ebp - 0x101c]
push eax
mov ecx, edi
call fcn.10017490
mov edi, eax
mov dword [ebp - 0x3070], edi
cmp edi, ebx
je 0x1001a7a6
push str.Get_Init_Data_from_Device_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x3080], edi
push 0x1012ac78
lea ecx, [ebp - 0x3080]
push ecx
call fcn.100c80ad
push ebx
lea edi, [ebp - 0x101c]
lea eax, [ebp - 0x306c]
call fcn.10046680
mov edi, eax
mov dword [ebp - 0x3070], edi
cmp edi, ebx
je 0x1001a7ef
push str.Load_XML_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x307c], edi
push 0x1012ac78
lea edx, [ebp - 0x307c]
push edx
call fcn.100c80ad
push 0x400
push esi
mov ebx, str.current
mov edx, str.PRINTERSETTINGSINFO_INFORMATION_LINK_STATUS_ADV
lea ecx, [ebp - 0x306c]
call fcn.100467a0
mov edi, eax
mov dword [ebp - 0x3070], edi
test edi, edi
je 0x1001a841
push str.Get_Link_Status_Fail
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x3078], edi
push 0x1012ac78
lea eax, [ebp - 0x3078]
push eax
call fcn.100c80ad
push 0x400
mov ecx, dword [ebp - 0x3074]
push ecx
mov ebx, str.current
mov edx, str.PRINTERSETTINGSINFO_INFORMATION_ERROR_CODE
lea ecx, [ebp - 0x306c]
call fcn.100467a0
mov edi, eax
mov dword [ebp - 0x3070], edi
xor ebx, ebx
cmp edi, ebx
je 0x1001a89b
push str.Get_Error_Status_Fail
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x3084], edi
push 0x1012ac78
lea edx, [ebp - 0x3084]
push edx
call fcn.100c80ad
mov dword [ebp - 0x3070], ebx
mov eax, dword [ebp - 0x3074]
push eax
push esi
push str.Get_Link_Status_from_Device_:___s___Error_Code_:___s____Success
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x101c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a8c7
sub eax, edx
sar eax, 1
je 0x1001a8e3
lea ecx, [ebp - 0x101c]
call fcn.10049df0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x306c]
push eax
call fcn.10046620
mov eax, dword [ebp - 0x3070]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100c59be
mov esp, ebp
pop ebp
ret 4
push str.Invalid_Parameter___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x306c]
push ecx
call fcn.10046620
mov eax, 0x57
jmp 0x1001a8fc