Function at 0x42adc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 8], ebx
mov esi, ecx
test edi, edi
jne 0x42aded
cmp dword [esi + 0x1210], edi
jne 0x42aded
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test dword [esi + 0x6a8], 0x200
je 0x42ae6f
mov eax, dword [esi + 0x6a0]
and eax, 0x2000000
or eax, 0
jne 0x42ae6f
lea edi, [esi + 0xf44]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp dword [esi + 0x102c], 0
jne 0x42ae31
push ecx
lea ecx, [esi + 0xf40]
mov dword [esi + 0x102c], ebx
call fcn.0045eba0
cmp dword [esi + 0xb6c], 0
je 0x42ae65
cmp dword [esi + 0x102c], 0
je 0x42ae65
cmp dword [esi + 0x100c], 0
jne 0x42ae65
push 0xfa
lea ecx, [esi + 0xf40]
call fcn.0045ea50
cmp dword [esi + 0x102c], 0
jne 0x42ae43
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
cmp dword [esi + 0x100c], 0
jne 0x42aec9
nop dword [eax + eax]
mov ecx, dword [esi + 0x1210]
test ecx, ecx
je 0x42aec6
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x42ae97
mov dword [edx], eax
jmp 0x42ae9d
mov dword [esi + 0x120c], eax
mov eax, dword [ecx + 4]
dec dword [esi + 0x1214]
mov dword [esi + 0x1210], eax
lea eax, [ecx + 0x10]
mov ecx, esi
push eax
call fcn.0042b560
neg eax
sbb eax, eax
and ebx, eax
cmp dword [esi + 0x100c], 0
je 0x42ae80
mov dword [ebp - 8], ebx
mov dword [esi + 0x1210], 0
lea ebx, [esi + 0xf44]
mov dword [esi + 0x120c], 0
mov dword [esi + 0x1200], 0
push ebx
mov dword [esi + 0x1214], 0
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov ecx, 2
xor eax, eax
cmp edi, ecx
push ecx
cmove eax, ecx
lea ecx, [esi + 0xf40]
mov dword [esi + 0x1030], eax
call fcn.0045eba0
push ebx
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp edi, 2
jne 0x42b011
push 0
push 0
mov ecx, esi
call fcn.0042bd00
mov dword [ebp + 8], eax
test eax, eax
je 0x42af68
lea edi, [esi + 0x1270]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push ecx
lea ecx, [esi + 0x126c]
mov dword [eax + 0x1c], 6
call fcn.0045eba0
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
test dword [esi + 0x6a8], 0x200
je 0x42b01a
mov eax, dword [esi + 0x6a0]
and eax, 0x2000000
or eax, 0
jne 0x42b01a
lea edi, [esi + 0x1140]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
push 0x30
sub esp, 8
lea ecx, [esi + 0x1114]
call fcn.0045d200
test eax, eax
jne 0x42afc5
push 1
push eax
push str.Cant_alloc_memory_rDObjList2_
mov ecx, esi
call fcn.0041a620
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
jmp 0x42b01a
push ecx
lea ecx, [esi + 0x113c]
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov dword [eax + 0x30], 3
call fcn.0045eba0
push ebx
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
push ecx
lea ecx, [esi + 0xf40]
mov dword [esi + 0x102c], 1
call fcn.0045eba0
push ebx
mov ebx, dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
call ebx
push edi
call ebx
jmp 0x42b01a
cmp edi, 1
jne 0x42b0c0
lea ebx, [esi + 0x1270]
push ebx
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp dword [esi + 0x1260], 0
jle 0x42b0b9
cmp dword [esi + 0x100c], 0
jne 0x42b0b3
xor edi, edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
cmp dword [esi + 0x1004], edi
je 0x42b07a
mov edi, dword [esi + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test edi, edi
je 0x42b07a
call fcn.00461690
mov ebx, eax
mov dword [ebp + 8], edx
jmp 0x42b083
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
push 0x64
lea ecx, [esi + 0x126c]
call fcn.0045ea50
test edi, edi
je 0x42b0aa
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x42b0aa
call fcn.00461690
sub eax, ebx
sbb edx, dword [ebp + 8]
add dword [edi], eax
adc dword [edi + 4], edx
cmp dword [esi + 0x1260], 0
jg 0x42b034
lea ebx, [esi + 0x1270]
push ebx
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
cmp dword [ebp - 8], 0
je 0x42b0dd
cmp dword [esi + 0x100c], 0
jne 0x42b0dd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4