Function at 0x42b0f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x42b119
test esi, esi
je 0x42b16b
lea edi, [ebx + 0xd0c]
nop
mov ecx, dword [edi + 4]
cmp ecx, edi
je 0x42b168
test ecx, ecx
je 0x42b168
mov edx, dword [ecx + 4]
test edx, edx
je 0x42b136
mov eax, dword [ecx]
mov dword [edx], eax
mov edx, dword [ecx]
test edx, edx
je 0x42b142
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], 0
mov dword [ecx], 0
dec dword [ebx + 0xd14]
push ecx
mov ecx, ebx
call fcn.0042b4a0
cmp dword [ebp + 8], 0
je 0x42b120
dec esi
test esi, esi
jg 0x42b120
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0xdc0]
test ecx, ecx
je 0x42b1d8
mov edx, dword [ecx + 4]
test edx, edx
je 0x42b180
mov eax, dword [ecx]
mov dword [edx], eax
mov edx, dword [ecx]
test edx, edx
je 0x42b18c
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], 0
mov dword [ecx], 0
dec dword [ebx + 0xd08]
mov edx, dword [ebx + 0xdc0]
test edi, edi
je 0x42b1c6
mov eax, dword [ebx + 0xd0c]
lea ecx, [ebx + 0xd0c]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ecx]
mov dword [eax + 4], edx
inc dword [ecx + 8]
mov dword [ecx], edx
jmp 0x42b1ce
push edx
mov ecx, ebx
call fcn.0042b4a0
mov dword [ebx + 0xdc0], 0
mov ecx, ebx
call fcn.00412f20
test al, al
je 0x42b28f
nop word [eax + eax]
cmp dword [ebx + 0xb6c], 0
je 0x42b28f
cmp dword [ebx + 0x102c], 1
jne 0x42b28f
cmp dword [ebx + 0x100c], 0
jne 0x42b28f
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [ebx + 0x1004], esi
je 0x42b250
mov esi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test esi, esi
je 0x42b250
call fcn.00461690
mov edi, eax
mov dword [ebp + 8], edx
jmp 0x42b259
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp + 8], eax
push 0x64
lea ecx, [ebx + 0xf40]
call fcn.0045ea50
test esi, esi
je 0x42b280
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42b280
call fcn.00461690
sub eax, edi
sbb edx, dword [ebp + 8]
add dword [esi], eax
adc dword [esi + 4], edx
mov ecx, ebx
call fcn.00412f20
test al, al
jne 0x42b1f0
mov ecx, ebx
call fcn.0042c050
mov esi, dword [ebx + 0x6a0]
lea edx, [ebx + 0xd00]
mov eax, dword [edx + 4]
and esi, 0x20000
mov edi, dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov dword [ebp + 0xc], esi
cmp eax, edx
jne 0x42b3b5
nop dword [eax]
cmp dword [ebx + 0x100c], 0
jne 0x42b3b5
cmp dword [ebx + 0x694], 5
jne 0x42b324
test dword [ebx + 0x6a8], 0x300
je 0x42b324
lea eax, [ebx + 0xd0c]
cmp dword [eax + 4], eax
jne 0x42b324
cmp dword [ebx + 0x1030], 1
je 0x42b303
test esi, esi
je 0x42b324
cmp dword [ebx + 0x1214], 0
jle 0x42b324
lea eax, [ebx + 0xf44]
push eax
call edi
push 1
mov ecx, ebx
call fcn.0042adc0
lea eax, [ebx + 0xf44]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
jmp 0x42b3a1
xor esi, esi
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [ebx + 0x1004], esi
je 0x42b361
mov esi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL30.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL30.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL30.dll_SetLastError]
test esi, esi
je 0x42b361
call fcn.00461690
mov edi, eax
mov dword [ebp + 8], edx
jmp 0x42b36a
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp + 8], eax
push 0x64
lea ecx, [ebx + 0xf40]
call fcn.0045ea50
test esi, esi
je 0x42b391
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42b391
call fcn.00461690
sub eax, edi
sbb edx, dword [ebp + 8]
add dword [esi], eax
adc dword [esi + 4], edx
mov ecx, ebx
call fcn.0042c050
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xd04]
lea edx, [ebx + 0xd00]
cmp eax, edx
je 0x42b2c0
xor ecx, ecx
cmp eax, edx
cmovne ecx, eax
cmp dword [ebx + 0xb6c], 0
mov dword [ebx + 0xdc0], ecx
je 0x42b3da
test ecx, ecx
je 0x42b3da
mov eax, dword [ecx + 4]
cmp eax, edx
je 0x42b3f4
test eax, eax
je 0x42b3f4
cmp dword [ebx + 0x1030], 1
je 0x42b3f4
test esi, esi
je 0x42b3f0
cmp dword [ebx + 0x1214], 0
jg 0x42b3f4
xor eax, eax
jmp 0x42b3f9
mov eax, 1
mov dword [ebx + 0xdc8], eax
lea eax, [ebx + 0xf44]
push eax
call edi
mov esi, dword [ebx + 0xdc0]
mov ecx, esi
test esi, esi
je 0x42b478
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
xor eax, 0xa35911
xor edx, 0xc634de70
cmp dword [esi + 0x28], eax
jne 0x42b42a
cmp dword [esi + 0x2c], edx
je 0x42b478
lea eax, [ebp - 0xf8]
mov ecx, 0x3c
push eax
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
push str.x_p
call fcn.0045f780
int3
test ecx, ecx
je 0x42b493
cmp dword [ebx + 0x100c], 0
jne 0x42b493
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8