Function at 0x10023ef0
Capabilities:
Print debug messages
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100537a3
push eax
mov eax, 0x13a0
mov dword fs:[0], esp
call fcn.10031da0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f0df8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100bde1c]
cmp eax, dword [ecx + 4]
jg 0x1002413c
push esi
mov dword [ebp - 0x10], 0x100bddfc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp esi, dword [0x100bddfc]
je 0x10023f65
mov edx, esi
mov ecx, 0x100bddfc
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x10023f65
pause
push esi
call fcn.10024690
jmp 0x10023f6c
lock inc dword [0x100bde00]
push ebx
push edi
mov dword [ebp - 4], 2
xor edi, edi
mov ebx, dword [ebp + 8]
cmp ebx, 2
jne 0x10023ff9
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10023ff9
mov cl, byte [edx]
mov eax, edx
test cl, cl
je 0x10023fc6
mov edi, edi
cmp cl, 0x2f
je 0x10023f9a
cmp cl, 0x5c
jne 0x10023fb9
cmp byte [eax + 1], 0x73
jne 0x10023fb9
cmp byte [eax + 2], 0x72
jne 0x10023fb9
cmp byte [eax + 3], 0x63
jne 0x10023fb9
mov cl, byte [eax + 4]
cmp cl, 0x2f
je 0x10023fc3
cmp cl, 0x5c
je 0x10023fc3
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10023f90
jmp 0x10023fc6
lea edx, [eax + 1]
push dword [ebp + 0x10]
lea eax, [ebp - 0x13ac]
push edx
push str._s___d__:
push 0x139b
push eax
call fcn.10005610
mov edi, eax
add esp, 0x14
cmp edi, 0x139a
jbe 0x10023ff4
mov edi, 0x139a
jmp 0x10023ff9
cmp edi, 0xffffffff
je 0x1002403a
push dword [ebp + 0x18]
mov esi, 0x139b
lea eax, [ebp - 0x13ac]
push 0
push dword [ebp + 0x14]
sub esi, edi
add eax, edi
push esi
push eax
call fcn.10005600
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.1003978d
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
dec esi
cmp eax, esi
cmovle esi, eax
cmp esi, ecx
jne 0x10024044
mov esi, 2
jmp 0x1002410d
add edi, esi
cmp ebx, 2
je 0x10024050
cmp ebx, 3
jne 0x100240bb
push 1
call fcn.1003d7dc
push eax
call fcn.1003aab9
push 2
call fcn.1003d7dc
push eax
push edi
lea eax, [ebp - 0x13ac]
push 1
push eax
call fcn.1003afa4
push 2
call fcn.1003d7dc
push eax
push 0xa
call fcn.1003ac7b
push 2
call fcn.1003d7dc
push eax
call fcn.1003aab9
add esp, 0x30
cmp ebx, 2
jne 0x100240bb
lea eax, [ebp - 0x13ac]
add eax, edi
push 0x10059f7c
push eax
call fcn.10005650
add esp, 8
lea eax, [ebp - 0x13ac]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x13ac]
push eax
push ebx
call dword [0x10072958]
add esp, 8
mov esi, eax
sub eax, 0
je 0x100240fd
sub eax, 2
jne 0x1002410d
push str.Exiting_on_SPEW_ABORT_n
push 1
push str.console
call fcn.10023ea0
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1002410d
cmp ebx, 2
je 0x1002410d
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1002410d
int3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
lock dec dword [ecx]
cmp dword [ecx], 0
pop edi
pop ebx
jne 0x1002412b
mov ecx, dword [ebp - 0x10]
xor edx, edx
xchg dword [ecx], edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x100bde1c
call fcn.10031c99
add esp, 4
cmp dword [0x100bde1c], 0xffffffff
jne 0x10023f32
mov dword [ebp - 4], 0
mov ecx, 0x100bde04
mov dword [0x100bddfc], 0
mov dword [0x100bde00], 0
call fcn.100242d0
mov byte [ebp - 4], 0
push 0x10054230
call fcn.10031b51
mov dword [ebp - 4], 0xffffffff
push 0x100bde1c
call fcn.10031c4f
add esp, 8
jmp 0x10023f32