Function at 0x1001a990
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3054]
mov eax, 0x3054
call fcn.100c8100
push 0xffffffffffffffff
push 0x100eaaba
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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_WPS_Status_from_Device___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
cmp esi, ebx
je 0x1001abf5
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 0x1001aa37
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0x284e], 0x5c
jne 0x1001aa77
lea eax, [ebp + 0x2850]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001aa60
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 0x1001aafa
push str.Get_WPS_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 0x1001ab37
push str.Load_WPS_XML_fail___
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x20], edi
push 0x1012ac78
lea ecx, [ebp - 0x20]
push ecx
call fcn.100c80ad
push 0x400
push esi
mov ebx, str.current
mov edx, str.PRINTERSETTINGSINFO_INFORMATION_WPS_STATUS
lea ecx, [ebp]
call fcn.100467a0
mov edi, eax
mov dword [ebp - 0x14], edi
xor ebx, ebx
cmp edi, ebx
je 0x1001ab7f
push str.Get_WPS_Status_Fail
mov ecx, edi
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 0x18], edi
push 0x1012ac78
lea edx, [ebp - 0x18]
push edx
call fcn.100c80ad
mov dword [ebp - 0x14], ebx
push esi
push str.Get_WPS_Status_from_Device_:___s____Success
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x2050]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001aba1
sub eax, edx
sar eax, 1
je 0x1001abbd
lea ecx, [ebp + 0x2050]
call fcn.10049df0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp]
push edx
call fcn.10046620
mov eax, dword [ebp - 0x14]
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
push str.Invalid_Parameter___
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp]
push eax
call fcn.10046620
mov eax, 0x57
jmp 0x1001abd0