Function at 0x1000cef0
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc90d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x1010a104], 1
jne 0x1000cf81
mov eax, dword [0x1010b2d8]
add eax, 0x11
push 0x10102060
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x1000d111
cmp dword [esi + 0x30], 0xf
lea ecx, [esi + 0x1c]
jbe 0x1000cf65
mov ecx, dword [ecx]
push ecx
lea eax, [esi + 0x10]
push eax
push str._s__s_n
push edi
call fcn.1000b320
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1000d10e
mov ecx, dword [0x1010b26c]
test ecx, ecx
jne 0x1000d0e7
mov dword [ebp - 0x60], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x5c], ecx
mov ecx, 0xc92368
movups xmmword [ebp - 0x70], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cfa4
sub ecx, edx
push ecx
push 0xc92368
lea ecx, [ebp - 0x70]
call fcn.100040e0
push 0xe
push str.SAMPchatlog_
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.10003ca0
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push 0
cmova eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esi + 8]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
mov ecx, dword [eax + 0x10]
push dword [eax]
inc ecx
push dword [eax + 4]
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x58]
push str._04d__02d__02d__02d__02d__02d.txt
push eax
call fcn.10002a20
lea ecx, [ebp - 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d022
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10003ca0
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push 0x10101ae4
cmova eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ecx, eax
add esp, 8
mov dword [0x1010b26c], ecx
test ecx, ecx
jne 0x1000d097
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x1000d111
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d088
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d0bf
push ecx
push edx
call fcn.100dad65
add esp, 8
jmp 0x1000d111
mov eax, dword [ebp - 0x5c]
cmp eax, 0xf
jbe 0x1000d0d5
mov edx, dword [ebp - 0x70]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d0c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d0c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100dad65
mov ecx, dword [0x1010b26c]
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp dword [esi + 0x30], 0xf
lea eax, [esi + 0x1c]
jbe 0x1000d0f2
mov eax, dword [eax]
push eax
lea eax, [esi + 0x10]
push eax
push str._s__s_n
push ecx
call fcn.1000b320
push dword [0x1010b26c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100daa0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret