Function at 0x10017cc0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ede6
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x468
mov eax, dword [0x1008acc0]
xor eax, ebp
mov dword [ebp - 0x30], 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 [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1001ad60
push eax
call fcn.10051ea0
add esp, 4
cmp eax, 0x100000
ja 0x10017d33
lea ecx, [ebp - 0x1c]
call fcn.1001ad60
push eax
call fcn.10052070
add esp, 4
cmp eax, 3
je 0x10017d42
lea ecx, [ebp - 0x1c]
call fcn.1001ad60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
call fcn.1001ad60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x10017d79
mov dword [ebp - 0x468], 0x1007a764
jmp 0x10017d83
mov dword [ebp - 0x468], 0x1007a76c
mov edx, dword [ebp - 0x468]
push edx
lea ecx, [ebp - 0x1c]
call fcn.1001ad60
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1003bdb1
add esp, 0xc
test eax, eax
je 0x10017db7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001fa0
jmp 0x10018036
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x10017de8
mov byte [ebp - 0x454], 0xff
mov byte [ebp - 0x453], 0xfe
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 2
lea edx, [ebp - 0x454]
push edx
call fcn.1003bf66
add esp, 0x10
jmp 0x10017df8
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.1003c072
add esp, 0xc
push 0
lea ecx, [ebp - 0x460]
push ecx
call fcn.10018720
push eax
lea edx, [ebp - 0x464]
push edx
call fcn.10054bd0
add esp, 0xc
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x450]
call fcn.100020f0
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x464]
call fcn.10001fa0
xor edx, edx
mov word [ebp - 0x448], dx
push 0x206
push 0
lea eax, [ebp - 0x446]
push eax
call fcn.10038c10
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.1001ad60
push eax
push 0x104
lea ecx, [ebp - 0x448]
push ecx
call fcn.1003b987
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
push 1
lea eax, [ebp - 0x448]
push eax
call fcn.10038668
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.1003bf66
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x23c], eax
xor edx, edx
mov word [ebp - 0x238], dx
push 0x206
push 0
lea eax, [ebp - 0x236]
push eax
call fcn.10038c10
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
push ecx
push str.___d_
push 0x104
lea edx, [ebp - 0x238]
push edx
call fcn.1003b654
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x238]
push ecx
call fcn.10038668
add esp, 4
shl eax, 1
push eax
lea edx, [ebp - 0x238]
push edx
call fcn.1003bf66
add esp, 0x10
mov dword [ebp - 0x24], 0x1007a780
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10038668
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.1003bf66
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001d60
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 5
push 0x20
push 0xd
lea ecx, [ebp - 0x2c]
call fcn.10018650
push 0x20
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.10018650
lea ecx, [ebp - 0x2c]
call fcn.1001ad60
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x44c]
push edx
call fcn.10038668
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x44c]
push eax
call fcn.1003bf66
add esp, 0x10
mov dword [ebp - 0x28], 0x1007a788
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x28]
push edx
call fcn.10038668
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.1003bf66
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003c281
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.10001fa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x450]
call fcn.10001fa0
jmp 0x10018014
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.1003c354
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001fa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.10038659
mov esp, ebp
pop ebp
ret