Function at 0x1010b810
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
call sub.msvcrt.dll__controlfp
push 0x8001f
push 0xffffffffffffffff
mov dword [ebp - 4], eax
call sub.msvcrt.dll__controlfp
push 0x30000
push ebx
call sub.msvcrt.dll__controlfp
mov eax, dword [0x101e316c]
add esp, 0x18
cmp eax, ebx
jge 0x1010b84d
xor eax, eax
jmp 0x1010b854
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x60]
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 4
push 0x3c
lea edx, [esi + 0x68]
push ebx
push edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x60], ebx
mov byte [esi + 0x240], bl
mov byte [esi + 0x241], bl
mov byte [esi + 0x242], bl
mov byte [esi + 0x243], bl
mov byte [esi + 0x245], 1
mov byte [esi + 0x244], bl
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x254], ebx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x26c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x114
lea eax, [esi + 0xa4]
push ebx
push eax
call sub.msvcrt.dll_memset
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1d0], ebx
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1e0], ebx
mov dword [esi + 0x1dc], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
add esp, 0xc
test byte [esi + 0x50], 1
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
je 0x1010b954
mov byte [esi + 0x244], 1
mov edi, dword [esi + 0x54]
push 1
call fcn.101bad80
mov edi, eax
cmp edi, ebx
jl 0x1010ba47
push esi
call fcn.1014d7e0
cmp eax, ebx
mov dword [ebp + 0x10], eax
jl 0x1010ba44
mov ecx, esi
call fcn.10151f80
test eax, eax
je 0x1010b98b
mov byte [esi + 0x241], 1
mov ecx, dword [esi + 0x54]
push ebx
push ecx
call fcn.101bb4d0
cmp eax, ebx
mov dword [ebp + 0x10], eax
jl 0x1010ba44
cmp byte [esi + 0x241], bl
jne 0x1010ba44
mov edx, dword [esi]
mov edi, dword [ebp + 0x14]
mov dword [edi], edx
mov eax, dword [esi + 0x264]
mov ecx, dword [esi + 0x54]
add eax, eax
add eax, eax
push 8
push eax
add ecx, 0x30
call fcn.101d8457
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x1010b9db
mov dword [ebp + 0x10], 0x8007000e
jmp 0x1010ba44
mov ecx, dword [esi + 0x264]
mov edx, dword [esi + 0x60]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x24c]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x250]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x254]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x258]
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x260]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x25c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x248]
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x264]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x26c]
add esp, 0xc
mov dword [edi + 0x28], edx
mov edi, dword [ebp + 0x10]
call sub.msvcrt.dll__clearfp
mov eax, dword [ebp - 4]
push 0xb001f
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
cmp edi, ebx
jge 0x1010ba6b
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
movzx eax, byte [esi + 0x241]
neg eax
sbb eax, eax
pop edi
and eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0x10