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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.1000be80
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
mov dword [ebp - 0x1008], eax
call fcn.10012bab
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 0x1014], edx
call fcn.10012b05
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.10001be0
add esp, 0x28
call fcn.1000b150
test al, al
je 0x10001f15
push ecx
pop ecx
push eax
push edx
push esp
pop esi
pop ebp
push ebx
pop ebp
pop ebx
pop esp
push ecx
pop esp
pop edi
push ecx
push ebx
push edx
push ecx
pop edx
push edx
pop ecx
push ecx
push ebx
pop eax
push ebx
push eax
push ecx
pop ebx
pop edi
call fcn.1000b230
test al, al
je 0x10001f37
push eax
pop edi
pop edi
pop edi
push esp
pop edx
pop eax
pop eax
push eax
push esi
push esp
push edx
pop esp
push esp
push esi
pop eax
pop edi
pop edx
push ebx
push esp
pop ecx
push esp
push ebp
push esi
push esp
call fcn.1000b4d0
test al, al
je 0x10001f5f
push ebx
push eax
push esi
pop ebx
pop esi
push ebx
pop eax
push eax
pop edi
push ebp
push edi
pop ebx
pop ebx
pop edx
push esi
pop esp
push edx
push ebx
pop eax
push edx
push ebx
pop ebp
push esp
push eax
pop edx
push esi
push ebp
pop esp
push esi
push ebp
push eax
push dword [ebp - 0x1008]
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov dword [ebp - 0x100c], ebx
call fcn.1000af90
test al, al
je 0x10001f9f
push eax
push esp
push edx
push edi
pop edx
pop esp
pop edi
push eax
push ebx
push esp
pop esi
pop ecx
pop ebx
push esp
push edi
push ebp
push edx
pop ebp
push esp
push ecx
pop edi
push edi
pop ecx
push ecx
pop ebx
call fcn.1000b000
test al, al
je 0x10001fbe
pop eax
pop edx
push esi
pop ebp
pop ebp
pop ebp
push eax
pop ebp
push edi
pop eax
pop ecx
push edx
push ebp
pop esp
pop eax
pop ecx
pop ebp
pop ecx
pop ebp
pop esi
pop ebp
push eax
call fcn.1000b310
test al, al
je 0x10001fda
push esi
push ecx
push esi
push edi
push esp
pop edx
push esi
push ebp
pop ecx
pop eax
pop ebx
pop edi
push ebx
push esi
push esp
pop esi
pop edx
push esp
pop edx
push 0x1002430c
push dword [ebp - 0x1008]
call fcn.1000ff26
mov esi, eax
add esp, 8
mov dword [ebp - 0x1010], esi
test esi, esi
je 0x100020e1
cmp dword [ebp - 0x100c], 0
jne 0x10002024
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.10012823
add esp, 0x10
call fcn.1000b4d0
test al, al
je 0x1000204c
pop ecx
pop esi
push edx
push ebx
push edx
pop ebp
push ecx
push eax
pop ebp
pop edx
push eax
push ebx
pop ebx
push esi
push ecx
push edx
pop edx
push ecx
push eax
push ecx
pop ecx
pop edx
push ebp
push eax
pop esi
mov esi, dword [ebp - 0x1010]
call fcn.1000b310
test al, al
je 0x1000206f
push esp
push esp
push ecx
pop edi
push ebp
push edx
pop edx
push esp
push edi
push esp
pop ebp
pop ebx
pop ecx
pop edx
pop ebp
push eax
push edx
push esp
pop ecx
push esp
pop esp
push ecx
push esi
push esi
push esi
push ebx
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002080
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.10012823
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.10012823
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.10012823
push esi
call fcn.1001256b
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000be6b
mov esp, ebp
pop ebp
ret