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

Disassembly:
mov eax, 0x203c
call fcn.100230e0
mov eax, dword [0x10143328]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x22e]
push ebx
push eax
mov word [esp + 0x234], bx
call fcn.10015360
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x1013ddb0]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x10006bd0
push 0x206
lea ecx, [esp + 0x63e]
push ebx
push ecx
mov word [esp + 0x644], bx
call fcn.10015360
push 0x206
lea edx, [esp + 0x32]
push ebx
push edx
mov word [esp + 0x38], bx
call fcn.10015360
add esp, 0x18
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.1000f3aa
push 0x7fe
lea edx, [esp + 0x84e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x854], bx
call fcn.10015360
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x448]
push str._sgswb.log
push ecx
call fcn.1000f0cb
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x430]
push edx
call esi
test eax, eax
je 0x10006e1a
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10006c91
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x22]
lea edx, [esp + 0x638]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10006cb0
lea eax, [esp + 0x638]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x438]
push str._s_s.txt
push edx
call fcn.1000f0cb
mov ecx, dword [esp + 0x205c]
lea eax, [esp + 0x2060]
push eax
push ecx
lea edx, [esp + 0x858]
push 0x3ff
push edx
call fcn.100119ef
push ebx
call fcn.1000f3da
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], edx
call fcn.100101c3
mov edx, dword [eax]
lea ecx, [esp + 0x868]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x1084]
push str.__d__d__d__d__d__d_:_s
push ecx
call fcn.1000f0cb
add esp, 0x4c
lea edx, [esp + 0x430]
push edx
mov word [esp + 0x1042], bx
xor edi, edi
call esi
test eax, eax
je 0x10006d74
mov edi, 1
lea eax, [esp + 0x430]
push 0x1013ddec
push eax
call fcn.10011b7e
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10006e1a
cmp edi, ebx
jne 0x10006db1
push esi
push 2
lea ecx, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x24], 0xfeff
call fcn.1000f7fa
add esp, 0x10
lea eax, [esp + 0x1040]
lea edx, [eax + 2]
jmp 0x10006dc0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10006dc0
sub eax, edx
sar eax, 1
push esi
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x1048]
push 1
push eax
call fcn.1000f7fa
push esi
push 2
lea ecx, [esp + 0x28]
push 1
push ecx
mov dword [esp + 0x30], 0xd
call fcn.1000f7fa
push esi
push 2
lea edx, [esp + 0x38]
push 1
push edx
mov dword [esp + 0x40], 0xa
call fcn.1000f7fa
push esi
call fcn.1000f8ee
add esp, 0x34
mov ecx, dword [esp + 0x2044]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000efa1
add esp, 0x203c
ret