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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.10031c10
mov eax, dword [0x101df230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x1008], eax
call fcn.1005c7be
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 0x1014], edx
call fcn.100650a0
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.10041e08
add esp, 0x28
call fcn.1003d9ea
test al, al
je 0x100423a1
push esp
push esi
push esi
push esp
pop esi
push ebp
pop edx
push ecx
push edx
pop esp
pop edi
push edx
pop edi
push ebp
pop eax
pop ebx
push ebp
xor ebx, ebx
push dword [ebp - 0x1008]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x100c], ebx
call fcn.1003d555
test al, al
je 0x100423dc
pop edi
push ebp
push ecx
pop ebx
push ebp
push eax
pop esp
push eax
push edx
pop esi
pop esp
pop esi
pop esi
pop eax
pop ebp
push edi
push edi
pop eax
pop ecx
pop esp
pop ecx
push ebx
pop edi
push ebx
call fcn.1003d59a
test al, al
je 0x100423fe
push ebp
push edi
push eax
pop edi
pop eax
push esp
push esp
push ebx
push esi
push esi
pop edx
push ecx
push ebp
pop eax
push edx
pop edx
push ebx
pop ebp
push edi
pop ecx
push edx
pop edx
pop esi
pop ebx
pop esi
call fcn.1003dab9
test al, al
je 0x10042419
push edx
push edi
push esi
pop ecx
pop esi
pop ebx
pop edi
pop edi
pop ebp
push edx
push edi
pop edx
push edi
pop eax
push ecx
pop ebx
pop ebx
pop edi
push 0x10182990
push dword [ebp - 0x1008]
call fcn.10062ecd
mov edi, eax
mov dword [ebp - 0x1010], edi
pop ecx
pop ecx
test edi, edi
je 0x10042507
cmp dword [ebp - 0x100c], 0
jne 0x10042462
push edi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.1006486b
add esp, 0x10
call fcn.1003d891
test al, al
je 0x10042490
pop eax
push ebp
pop esi
push ebx
pop esi
pop eax
push esi
push eax
push ebp
push ebp
push esp
push eax
push ebp
push ebx
push esp
push esp
pop edi
push eax
push edi
pop esp
push ecx
pop eax
pop ebx
pop edx
push ecx
push ebx
push ebp
pop ebx
pop edx
push esp
pop ebp
mov edi, dword [ebp - 0x1010]
call fcn.1003d6f3
test al, al
je 0x100424aa
pop ebx
pop esi
push edx
pop eax
pop eax
push esp
push ecx
push ebx
push ebx
pop eax
push esi
pop esi
push ebx
pop ebp
push esp
push edi
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.10064038
push edi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.1006486b
push edi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.1006486b
push edi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.1006486b
push edi
call fcn.10062ccb
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031bc0
mov esp, ebp
pop ebp
ret