Function at 0x1000b280
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x1000b290
mov esi, 1
push esi
call fcn.1001358a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000b2e2
call fcn.100138d3
mov edi, eax
call fcn.1000baf0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x1000b2c6
mov edx, dword [fcn.1000b3a0]
mov dword [fcn.1000b3a0], edx
test al, 0x18
je 0x1000b2d7
push esi
push 0x24
push 5
call fcn.10009a30
add esp, 0xc
test edi, edi
je 0x1000b2fd
push 1
call fcn.10013c24
test byte [esp + 0x14], 0x20
je 0x1000b2fd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x1000b910
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10042fa4], eax
jne 0x1000b93d
call fcn.100138d3
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x10036a30
call fcn.10013824
add esp, 0xc
mov al, 1
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100430c0
call esi
push 0x10043060
call esi
push 0x100430e0
call esi
push 0x10043080
call esi
push 0x10043020
call esi
push 0x10043040
call esi
push 0x10042fe0
call esi
push 0x10042fc0
call esi
push 0x100430a0
call esi
call fcn.1000bca0
push 0x10043000
call esi
call sym.LIBMYSQL.dll_my_thread_init
test al, al
pop esi
je 0x1000b9a1
call fcn.1000b9b0
mov al, 1
ret
xor al, al
ret

Function at 0x1000ba10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x10043080
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10042fa4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000ba8b
push 0x40
push 1
call fcn.10014eaa
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000ba53
push 0x10043080
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x10042fa4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10042bc0]
inc eax
lea edx, [esi + 0xc]
mov dword [0x10042bc0], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.1000bc50
add esp, 8
mov byte [esi + 0x3c], 1
push 0x10043080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x1000baa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10042fa4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000bad9
mov al, byte [esi + 0x3c]
test al, al
je 0x1000bad9
lea ecx, [esi + 4]
push ecx
call fcn.1000bc80
add esp, 4
lea edx, [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.100134a1
add esp, 4
mov eax, dword [0x10042fa4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret