Function at 0x10031720
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fd888
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x358
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 eax, dword [str.__xml_version_1.0____ITProfileDatabase__PersistentList___PersistentList__PreLogonList___PreLogonList__PostLogonList___PostLogonList__Profiles___Profiles__PACSection___PACSection___ITProfileDatabase_]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], str.initial.xml
cmp dword [ebp + 8], 0
jne 0x100317a2
push 0xf01
push str..ITProfileXml.cpp
push str.NULL___pszCipherFile
call fcn.100cb557
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1003180c
push 0x103
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.10003f80
add esp, 0xc
push 0x5c
lea edx, [ebp - 0x120]
push edx
call fcn.10006840
add esp, 8
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x1003180c
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov byte [ecx], 0
mov edx, dword [ebp - 0x12c]
push edx
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.100cb017
add esp, 0xc
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x124]
push edx
call fcn.100331a0
add esp, 4
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
jne 0x1003187e
xor al, al
jmp 0x100319d1
push 0
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x100318c5
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x100319d1
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x140], 0x1ff
mov byte [ebp - 0x151], 0
push 3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x154]
push edx
call fcn.10003f80
add esp, 0xc
push 0x200
push 0
lea eax, [ebp - 0x358]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x140]
push edx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.100315c0
add esp, 0x10
lea edx, [ebp - 0x358]
push edx
lea ecx, [ebp - 0x14c]
call fcn.1000bcc0
mov dword [ebp - 0x368], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.1000d500
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.1000bdb0
jmp 0x100319be
mov dword [ebp - 4], 0xffffffff
jmp 0x100319cf
mov al, 1
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