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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10065040]
xor eax, esp
mov dword [esp + 0x54], eax
cmp byte [0x10067e5e], 1
push esi
push edi
je 0x10002b09
push 0x1006aaf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x10068487], 0
jne 0x10002937
cmp byte [0x10068485], 1
je 0x100028f1
cmp byte [0x10068695], 0
jne 0x100028f1
push 0x10069538
push 0x10068488
push str._slogsGreenLuma_2024_Server__s.log
push 0xffffffffffffffff
push 0x104
push 0x10074fa0
call fcn.10001320
add esp, 0x18
jmp 0x1000290f
push 0x10068488
push str._sGreenLuma_2024_Server.log
push 0xffffffffffffffff
push 0x104
push 0x10074fa0
call fcn.10001320
add esp, 0x14
mov byte [0x10068487], 1
cmp eax, 0xffffffff
jne 0x10002937
push 0x10
push str.GreenLuma_2024
push str.Unable_to_build_path_to_log_file__Server__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1006aaf0
nop dword [eax]
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.10001280
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.10036431
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
cmovs eax, ecx
mov dword [esp + 0x18], 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 + 0x24], eax
movzx eax, word [esp + 0x46]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x48]
push 0x19
mov dword [esp + 0x18], eax
call fcn.1002dc76
add esp, 4
mov dword [esp + 0x1c], eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push esi
push edi
push dword [esp + 0x1c]
movq qword [eax + 0x10], xmm0
push dword [esp + 0x2c]
mov byte [eax + 0x18], 0
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 0x10053834
push 0xffffffffffffffff
push 0x19
push eax
call fcn.100013e0
mov edi, dword [esp + 0x40]
mov esi, eax
lea eax, [esi + edi]
push eax
mov dword [esp + 0x44], eax
call fcn.1002dc76
add esp, 0x2c
mov dword [esp + 0x14], eax
lea ecx, [esi + edi]
push ecx
push 0
push eax
call fcn.1002f340
add esp, 0xc
lea eax, [esi + edi]
push dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.10037da9
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, edi
push eax
push dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + esi]
call fcn.10001360
add esp, 0xc
push 0x1006aaf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x40000000
push 4
push 0
push 2
push 0x40000000
push 0x10074fa0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002ae6
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x10002ade
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
push edx
push 0
push ecx
push eax
push esi
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], edi
mov byte [eax + ecx - 1], 0xa
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x10002ae6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1006aaf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x14]
call fcn.1002d719
add esp, 4
push dword [esp + 0x1c]
call fcn.1002d719
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.1002d706
mov esp, ebp
pop ebp
ret