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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100086
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1ac
mov eax, dword [0x10172eb8]
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 dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x128], str.xProfile.xml
mov dword [ebp - 0x138], 0x43297
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x184], 0xffffffff
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x180]
call fcn.10017ba0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
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 - 0x148], eax
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x1006497f
mov dword [ebp - 0x18c], 0x80043298
push 0x1014f068
lea edx, [ebp - 0x18c]
push edx
call fcn.100cb4c0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x184], 0xffffffff
jne 0x100649d1
mov dword [ebp - 0x190], 0x8004329e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10017c00
mov eax, dword [ebp - 0x190]
jmp 0x10064caf
push 0
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jae 0x10064a12
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x194], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10017c00
mov eax, dword [ebp - 0x194]
jmp 0x10064caf
mov eax, dword [ebp - 0x14]
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0
jne 0x10064a6c
mov dword [ebp - 0x148], 0x800432b4
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x19c], eax
push 0x1014f068
lea ecx, [ebp - 0x19c]
push ecx
call fcn.100cb4c0
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x14], 0
jbe 0x10064aa9
cmp dword [ebp - 0x14], 0xffffffff
jae 0x10064aa9
push 0
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10064abd
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x140]
je 0x10064ae4
mov dword [ebp - 0x138], 0x800432c3
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x1a0], ecx
push 0x1014f068
lea edx, [ebp - 0x1a0]
push edx
call fcn.100cb4c0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], 0
push 3
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x180]
call fcn.10017e30
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x180]
call fcn.10018120
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x10064b57
cmp dword [ebp - 0x134], 0
jne 0x10064b7e
mov dword [ebp - 0x1a4], 0x800432c4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10017c00
mov eax, dword [ebp - 0x1a4]
jmp 0x10064caf
mov dword [ebp - 0x124], 0
push 0
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x10064bc9
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x124]
je 0x10064bfb
lea ecx, [ebp - 0x180]
call fcn.100181d0
mov dword [ebp - 0x138], 0x800432a5
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x1a8], eax
push 0x1014f068
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.100cb4c0
lea ecx, [ebp - 0x180]
call fcn.100181d0
mov dword [ebp - 0x138], 0x43297
jmp 0x10064c29
mov dword [ebp - 4], 0
cmp dword [ebp - 0x184], 0xffffffff
je 0x10064c46
mov edx, dword [ebp - 0x184]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x130], 0xffffffff
je 0x10064c5c
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x13c], 0
je 0x10064c80
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
push edx
call fcn.100aaaba
add esp, 4
lea ecx, [ebp - 0x180]
call fcn.10017fd0
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10017c00
mov eax, dword [ebp - 0x1b0]
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.100ca7f5
mov esp, ebp
pop ebp
ret 0xc