Function at 0x1001a340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eab3d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3074
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 dword [ebp - 0x3070], 0xd
lea eax, [ebp - 0x306c]
push eax
call fcn.100465a0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push str.Get_Link_Status_from_Device___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
cmp esi, ebx
je 0x1001a5c3
push 0x800
push ebx
lea ecx, [ebp - 0x81c]
push ecx
call fcn.100c7d20
add esp, 0xc
lea edx, [ebp - 0x81c]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001a3e3
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x81e], 0x5c
jne 0x1001a41d
lea eax, [ebp - 0x81c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001a406
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x81e], bx
push 0x800
push ebx
lea eax, [ebp - 0x101c]
push eax
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 ecx, [ebp - 0x81c]
push ecx
push str._sINIT__d__d.xml
lea edx, [ebp - 0x101c]
call fcn.10005c50
add esp, 0x10
push 0x2710
push 0xf3
lea edx, [ebp - 0x101c]
push edx
mov ecx, edi
call fcn.10017490
mov edi, eax
mov dword [ebp - 0x3070], edi
cmp edi, ebx
je 0x1001a4a7
push str.Get_Init_Data_from_Device_fail___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 0x3078], edi
push 0x1012ac78
lea eax, [ebp - 0x3078]
push eax
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 0x1001a4f0
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 ecx, [ebp - 0x307c]
push ecx
call fcn.100c80ad
mov edx, dword [ebp + 8]
push edx
push esi
mov ebx, str.current
mov edx, str.PRINTERSETTINGSINFO_INFORMATION_LINK_STATUS
lea ecx, [ebp - 0x306c]
call fcn.100467a0
mov edi, eax
mov dword [ebp - 0x3070], edi
xor ebx, ebx
cmp edi, ebx
je 0x1001a543
push str.Get_Link_Status_Fail
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x3074], edi
push 0x1012ac78
lea eax, [ebp - 0x3074]
push eax
call fcn.100c80ad
mov dword [ebp - 0x3070], ebx
push esi
push str.Get_Link_Status_from_Device_:___s____Success
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x101c]
lea edx, [eax + 2]
jmp 0x1001a570
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a570
sub eax, edx
sar eax, 1
je 0x1001a58c
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 0x1001a5a5