Function at 0x100023c0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1006100c]
xor eax, esp
mov dword [esp + 0x54], eax
cmp byte [0x10063b95], 1
push esi
push edi
je 0x1000269e
push 0x10064c04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x10063b94], 0
jne 0x1000248e
cmp byte [0x10063b97], 1
jne 0x10002413
push 0x10063fb8
push str._sGreenLuma_2023.log
jmp 0x1000244c
cmp byte [0x10063fb7], 0
jne 0x10002442
push 0x10065060
push 0x10063fb8
push str._slogsGreenLuma_2023_Game__s.log
push 0xffffffffffffffff
push 0x104
push 0x10065ff0
call fcn.100012e0
add esp, 0x18
jmp 0x10002460
push 0x10063fb8
push str._sGreenLuma_2023_Game.log
push 0xffffffffffffffff
push 0x104
push 0x10065ff0
call fcn.100012e0
add esp, 0x14
mov byte [0x10063b94], 1
cmp eax, 0xffffffff
jne 0x1000248e
push 0x10
push str.GreenLuma_2023
push str.Unable_to_build_path_to_log_file__Main__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10064c04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0
push 0
call fcn.10001240
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.10033453
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
cmovs eax, ecx
add eax, 2
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x40]
movzx edi, word [esp + 0x4a]
movzx esi, word [esp + 0x4c]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x42]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x46]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x48]
push 0x32
mov dword [esp + 0x20], eax
call fcn.1002ad6f
add esp, 4
mov dword [esp + 0x20], eax
push 0x32
push 0
push eax
call fcn.1002c2e0
add esp, 0xc
push esi
push edi
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push str._d__d__d__d:_d:_d
push 0xffffffffffffffff
push 0x19
push dword [esp + 0x44]
call fcn.100012e0
mov edi, dword [esp + 0x4c]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + edi]
mov dword [esp + 0x40], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [esp + 0x50], ecx
call fcn.1002ad6f
add esp, 0x2c
mov dword [esp + 0x14], eax
push dword [esp + 0x24]
push 0
push eax
call fcn.1002c2e0
add esp, 0xc
lea ecx, [esi + edi]
push dword [esp + 0x20]
push ecx
push dword [esp + 0x1c]
call fcn.10034abd
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, edi
push eax
mov eax, dword [esp + 0x18]
push dword [ebp + 8]
push ecx
lea ecx, [eax + esi*2]
call fcn.100012a0
add esp, 0xc
push 0x10064c04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x40000000
push 4
push 0
push 2
push 0x40000000
push 0x10065ff0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
je 0x10002676
lea eax, [esi + edi]
test eax, eax
je 0x1000266f
mov edi, dword [esp + 0x14]
cmp word [edi], 0
je 0x1000265f
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x1000265b
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0xffffffff
push eax
push 0
push 1
push edi
push dword [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0xffffffff
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add edi, 2
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x10002600
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10064c04
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x14]
call fcn.1002a815
add esp, 4
push dword [esp + 0x20]
call fcn.1002a815
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret