Function at 0x1001c1e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3054]
mov eax, 0x3054
call fcn.100c8100
push 0xffffffffffffffff
push 0x100eaa7a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x3050], 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 - 0x14], 0xd
lea eax, [ebp]
push eax
call fcn.100465a0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push str.Get_WWS_Status_from_Device___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
cmp esi, ebx
je 0x1001c3e2
push 0x800
push ebx
lea ecx, [ebp + 0x2850]
push ecx
call fcn.100c7d20
add esp, 0xc
lea edx, [ebp + 0x2850]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x2850]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001c287
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x284e], 0x5c
jne 0x1001c2c7
lea eax, [ebp + 0x2850]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001c2b0
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 + 0x284e], bx
push 0x800
push ebx
lea eax, [ebp + 0x2050]
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 + 0x2850]
push ecx
push str._sINIT__d__d.xml
lea edx, [ebp + 0x2050]
call fcn.10005c50
add esp, 0x10
push 0x2710
push 0xf9
lea edx, [ebp + 0x2050]
push edx
mov ecx, edi
call fcn.10017490
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x1001c34a
push str.Get_WWS_Init_Data_from_Device_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x1c], edi
push 0x1012ac78
lea eax, [ebp - 0x1c]
push eax
call fcn.100c80ad
push ebx
lea edi, [ebp + 0x2050]
lea eax, [ebp]
call fcn.10046680
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x1001c387
push str.Load_WWS_XML_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x18], edi
push 0x1012ac78
lea ecx, [ebp - 0x18]
push ecx
call fcn.100c80ad
push 0x400
push esi
mov ebx, str.current
mov edx, str.PRINTERSETTINGSINFO_INFORMATION_WWSCONFIRM_STATUS
lea ecx, [ebp]
call fcn.100467a0
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1001c3c5
push str.Get_WWS_Status_Fail
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 4], 0
jmp 0x1001c440
xor edi, edi
mov dword [ebp - 0x14], edi
push esi
push str.Get_WPS_Status_from_Device_:___s____Success
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 4], edi
jmp 0x1001c440
push str.Invalid_Parameter___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp]
push edx
call fcn.10046620
mov eax, 0x57
jmp 0x1001c47e
lea eax, [ebp + 0x2050]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001c450
sub eax, edx
sar eax, 1
je 0x1001c46c
lea ecx, [ebp + 0x2050]
call fcn.10049df0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
push ecx
call fcn.10046620
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3050]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x3054
mov esp, ebp
pop ebp
ret