Function at 0x10064340
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100053
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x814
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x794], str.temp.enc
mov dword [ebp - 0x790], 0x43297
mov dword [ebp - 0x78c], 0xffffffff
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x55c], 0
lea ecx, [ebp - 0x7e0]
call fcn.10017ba0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7f8], 0xffffffff
mov dword [ebp - 0x124], 0x400
push 0x104
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.100cac20
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x7a4], eax
mov edx, dword [ebp - 0x794]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp + 8], 0
jne 0x10064465
mov ecx, dword [0x1012a89c]
push ecx
push 0x800432b1
mov ecx, dword [ebp - 0x81c]
add ecx, 4
call sym.PfMgrApi.dll_protected:_long_int___thiscall_CProfileDbControllerBase::LogEvTrace_unsigned_long_int__char__const
mov dword [ebp - 0x7fc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7e0]
call fcn.10017c00
mov eax, dword [ebp - 0x7fc]
jmp 0x1006482c
mov byte [ebp - 0x12c], 0
push 0x224
push 0
lea edx, [ebp - 0x788]
push edx
call fcn.100cac20
add esp, 0xc
mov byte [ebp - 4], 1
push 0x14
lea eax, [ebp - 0x7f4]
push eax
call fcn.10017ca0
add esp, 8
push 0x29
push 0x14
lea ecx, [ebp - 0x154]
push ecx
lea edx, [ebp - 0x7f4]
push edx
call fcn.1008d890
add esp, 0x10
lea eax, [ebp - 0x788]
push eax
push 0x29
lea ecx, [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x81c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x81c]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x788], 0x78
push 3
push 1
push 0x29
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x7e0]
call fcn.10017e30
lea ecx, [ebp - 0x7e0]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x81c]
call sym.PfMgrApi.dll_protected:_long_int___thiscall_CProfileDbController::EncryptExportedProfileXml2File_struct__INTEL_WLAN_PROFILE_V120___char_const___class_CInternalRecdEncrypter__
mov dword [ebp - 0x820], eax
mov ecx, dword [ebp - 0x820]
mov dword [ebp - 0x790], ecx
cmp dword [ebp - 0x790], 0x43297
je 0x1006454e
mov edx, dword [ebp - 0x790]
mov dword [ebp - 0x800], edx
push 0x1014f068
lea eax, [ebp - 0x800]
push eax
call fcn.100cb4c0
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x81c]
call sym.PfMgrApi.dll_public:_unsigned_long_int___thiscall_CProfileDbController::CalculateChecksumFromFile_char_const__
mov dword [ebp - 0x824], eax
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x568], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78c], eax
cmp dword [ebp - 0x78c], 0xffffffff
jne 0x100645c4
mov dword [ebp - 0x790], 0x80043298
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x804], ecx
push 0x1014f068
lea edx, [ebp - 0x804]
push edx
call fcn.100cb4c0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7f8], eax
cmp dword [ebp - 0x7f8], 0xffffffff
jne 0x10064619
mov dword [ebp - 0x790], 0x8004329e
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x808], ecx
push 0x1014f068
lea edx, [ebp - 0x808]
push edx
call fcn.100cb4c0
push 0
mov eax, dword [ebp - 0x7f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x584], eax
cmp dword [ebp - 0x584], 1
jae 0x1006465e
mov dword [ebp - 0x790], 0x8004329e
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x80c], ecx
push 0x1014f068
lea edx, [ebp - 0x80c]
push edx
call fcn.100cb4c0
mov dword [ebp - 0x798], 0x224
mov dword [ebp - 0x158], 0
push 0
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x798]
push ecx
lea edx, [ebp - 0x788]
push edx
mov eax, dword [ebp - 0x78c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x7a8], eax
cmp dword [ebp - 0x7a8], 0
je 0x100646b3
mov ecx, dword [ebp - 0x798]
cmp ecx, dword [ebp - 0x158]
je 0x100646ce
mov dword [ebp - 0x810], 0x80043298
push 0x1014f068
lea edx, [ebp - 0x810]
push edx
call fcn.100cb4c0
mov eax, 1
test eax, eax
je 0x100647a4
mov dword [ebp - 0x7a0], 0
push 0
lea ecx, [ebp - 0x7a0]
push ecx
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0x558]
push eax
mov ecx, dword [ebp - 0x7f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x7a8], eax
cmp dword [ebp - 0x7a8], 0
jne 0x1006471d
jmp 0x100647a4
mov dword [ebp - 0x158], 0
push 0
lea edx, [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x7a0]
push eax
lea ecx, [ebp - 0x558]
push ecx
mov edx, dword [ebp - 0x78c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x7a8], eax
cmp dword [ebp - 0x7a8], 0
je 0x10064768
mov eax, dword [ebp - 0x7a0]
cmp eax, dword [ebp - 0x158]
je 0x1006478f
mov dword [ebp - 0x790], 0x800432a5
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x814], ecx
push 0x1014f068
lea edx, [ebp - 0x814]
push edx
call fcn.100cb4c0
mov eax, dword [ebp - 0x7a0]
cmp eax, dword [ebp - 0x124]
je 0x1006479f
jmp 0x100647a4
jmp 0x100646ce
jmp 0x100647bd
mov dword [ebp - 4], 0
cmp dword [ebp - 0x78c], 0xffffffff
je 0x100647da
mov ecx, dword [ebp - 0x78c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7f8], 0xffffffff
je 0x100647f0
mov edx, dword [ebp - 0x7f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7e0]
call fcn.10017fd0
mov ecx, dword [ebp - 0x790]
mov dword [ebp - 0x818], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7e0]
call fcn.10017c00
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8