Function at 0x10065960
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x1b0], 0
cmp dword [ebp + 8], 0
jne 0x10065990
xor eax, eax
jmp 0x10065d25
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 4], 0x104
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x2d8], eax
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x1ac], edx
cmp dword [ebp - 0x1ac], 0
jne 0x10065a08
mov eax, dword [0x1012a924]
push eax
push 0x800432b4
mov ecx, dword [ebp - 0x2e0]
add ecx, 4
call sym.PfMgrApi.dll_protected:_long_int___thiscall_CProfileDbControllerBase::LogEvTrace_unsigned_long_int__char__const
xor eax, eax
jmp 0x10065d25
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.100cac20
add esp, 0xc
lea ecx, [ebp - 0x1a8]
call fcn.10096120
push 0x1000
lea ecx, [ebp - 0x1a8]
call fcn.10096160
test eax, eax
je 0x10065a6f
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jge 0x10065a6d
xor eax, eax
jmp 0x10065d25
jmp 0x10065a9d
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jge 0x10065a9d
xor eax, eax
jmp 0x10065d25
mov edx, dword [str.IntelWirelessWLANProfiles]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x10065ac7
xor eax, eax
jmp 0x10065d25
push 0x1000
lea ecx, [ebp - 0x1a8]
call fcn.10096160
test eax, eax
jne 0x10065c2e
mov byte [ebp - 0x2c8], 0
push 0x103
push 0
lea ecx, [ebp - 0x2c7]
push ecx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x1bc], 0x103
push 0
mov edx, dword [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x2c8]
push eax
call fcn.10090ea0
add esp, 0xc
lea ecx, [ebp - 0x2c8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.10053530
add esp, 8
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x10065c2e
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x110]
sub eax, ecx
push eax
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.10003fa0
add esp, 0x10
mov edx, dword [ebp - 0x2e0]
mov eax, dword [edx + 0x1190]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x2c8]
push edx
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2d0], 0
jmp 0x10065bbd
mov eax, dword [ebp - 0x2d0]
add eax, 1
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
cmp ecx, dword [ebp - 0x2cc]
jae 0x10065beb
mov edx, dword [ebp - 0x1b8]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x10065be9
jmp 0x10065beb
jmp 0x10065bae
cmp dword [ebp - 0x1b8], 0
je 0x10065c0a
mov eax, dword [ebp - 0x1b8]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x10065c2e
mov edx, dword [0x1012a86c]
push edx
push 0x800432b3
mov ecx, dword [ebp - 0x2e0]
add ecx, 4
call sym.PfMgrApi.dll_protected:_long_int___thiscall_CProfileDbControllerBase::LogEvTrace_unsigned_long_int__char__const
mov dword [ebp - 0x1b0], 0
cmp dword [ebp - 0x1b0], 0
je 0x10065cfb
push 0x1000
lea ecx, [ebp - 0x1a8]
call fcn.10096160
test eax, eax
jne 0x10065c7e
cmp dword [ebp - 0x1ac], 0
je 0x10065c75
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003fa0
add esp, 0x10
jmp 0x10065c7c
xor eax, eax
jmp 0x10065d25
jmp 0x10065c99
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003fa0
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x2e0]
call sym.PfMgrApi.dll_protected:_int___thiscall_CProfileDbController::VerifyAndCreateFolder_char_const__
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
or ecx, 2
mov dword [ebp - 0x2d4], ecx
mov edx, dword [ebp - 0x2d4]
push edx
mov eax, dword [ebp - 0x2e0]
add eax, 0xd4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1012d094
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100cb017
add esp, 0xc
cmp dword [ebp - 0x1ac], 0
je 0x10065d1f
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.100aaaba
add esp, 4
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8