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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x139c
call fcn.3f01aa60
mov eax, dword fs:[0x2c]
mov ecx, dword [0x3f0924ac]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x3f04ebf4]
cmp eax, dword [ecx + 0x408]
jg 0x3f005fcf
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov ebx, 0x3f04ebd4
cmp edx, dword [0x3f04ebd4]
je 0x3f005e0d
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x3f005e0d
pause
push edx
mov ecx, ebx
call sym.tier0_s.dll_private:_void___thiscall_CThreadSpinLock::Lock_unsigned_int_volatile
jmp 0x3f005e14
lock inc dword [0x3f04ebd8]
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, 2
jne 0x3f005e99
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x3f005e99
mov cl, byte [edx]
mov eax, edx
test cl, cl
je 0x3f005e66
lea ecx, [ecx]
cmp cl, 0x2f
je 0x3f005e3a
cmp cl, 0x5c
jne 0x3f005e59
cmp byte [eax + 1], 0x73
jne 0x3f005e59
cmp byte [eax + 2], 0x72
jne 0x3f005e59
cmp byte [eax + 3], 0x63
jne 0x3f005e59
mov cl, byte [eax + 4]
cmp cl, 0x2f
je 0x3f005e63
cmp cl, 0x5c
je 0x3f005e63
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x3f005e30
jmp 0x3f005e66
lea edx, [eax + 1]
push dword [ebp + 0x10]
lea eax, [ebp - 0x139c]
push edx
push str._s___d__:
push 0x139b
push eax
call fcn.3f006060
mov edi, eax
add esp, 0x14
cmp edi, 0x139a
jbe 0x3f005e94
mov edi, 0x139a
jmp 0x3f005e99
cmp edi, 0xffffffff
je 0x3f005eda
push dword [ebp + 0x18]
mov esi, 0x139b
lea eax, [ebp - 0x139c]
push 0
push dword [ebp + 0x14]
sub esi, edi
add eax, edi
push esi
push eax
call fcn.3f001b40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.3f01ffb4
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
dec esi
cmp eax, esi
cmovle esi, eax
cmp esi, ecx
jne 0x3f005ee4
mov esi, 2
jmp 0x3f005fad
add edi, esi
cmp ebx, 2
je 0x3f005ef0
cmp ebx, 3
jne 0x3f005f5b
push 1
call fcn.3f020910
push eax
call fcn.3f020c87
push 2
call fcn.3f020910
push eax
push edi
lea eax, [ebp - 0x139c]
push 1
push eax
call fcn.3f02102e
push 2
call fcn.3f020910
push eax
push 0xa
call fcn.3f020d05
push 2
call fcn.3f020910
push eax
call fcn.3f020c87
add esp, 0x30
cmp ebx, 2
jne 0x3f005f5b
lea eax, [ebp - 0x139c]
add eax, edi
push 0x3f036ad0
push eax
call fcn.3f0060a0
add esp, 8
lea eax, [ebp - 0x139c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x139c]
push eax
push ebx
call dword [0x3f04800c]
add esp, 8
mov esi, eax
sub eax, 0
je 0x3f005f9d
sub eax, 2
jne 0x3f005fad
push str.Exiting_on_SPEW_ABORT_n
push 1
push str.console
call sym.tier0_s.dll__DMsg
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x3f005fad
cmp ebx, 2
je 0x3f005fad
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x3f005fad
int3
lock dec dword [0x3f04ebd8]
cmp dword [0x3f04ebd8], 0
jne 0x3f005fc6
xor ecx, ecx
mov eax, 0x3f04ebd4
xchg dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3f04ebf4
call fcn.3f01a5dc
add esp, 4
cmp dword [0x3f04ebf4], 0xffffffff
jne 0x3f005ddd
mov dword [0x3f04ebd4], 0
mov ecx, 0x3f04ebdc
mov dword [0x3f04ebd8], 0
call sym.tier0_s.dll_public:_void___thiscall_CThreadMutex::constructor_void_
push 0x3f035c50
call fcn.3f01aa47
push 0x3f04ebf4
call fcn.3f01a592
add esp, 8
jmp 0x3f005ddd