Function at 0x4241f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x12bc]
mov dword [ebp - 0x20], 0
xor ebx, ebx
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x38], 1
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x4242b9
mov eax, dword [esi + 0x12a4]
test eax, eax
je 0x424282
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x12a8]
add edi, eax
cmp eax, edx
jb 0x42427e
mov ecx, dword [esi + 0x129c]
mov eax, dword [esi + 0x1290]
sub ecx, edi
add ecx, eax
sub edx, eax
cmp ecx, edx
cmovg edx, ecx
jmp 0x424288
sub edx, edi
jmp 0x424288
mov edx, dword [esi + 0x129c]
lea ecx, [edx - 0x1c]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
cmp eax, dword [esi + 0x12b4]
jle 0x4242b9
mov eax, dword [esi + 0x6a0]
and eax, 0x10000
or eax, 0
jne 0x4242b2
lea ebx, [eax + 1]
jmp 0x42456c
mov dword [ebp - 0x20], 1
cmp dword [esi + 0x100c], 0
jne 0x424561
nop word [eax + eax]
cmp dword [esi + 0x12ac], 0
jle 0x424561
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x424355
xor edi, edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
cmp dword [esi + 0x1004], edi
je 0x424325
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 0x424325
call fcn.00461690
mov ebx, eax
mov dword [ebp - 0x1c], edx
jmp 0x42432e
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
push 0x32
lea ecx, [esi + 0x12b8]
call fcn.0045ea50
test edi, edi
je 0x424355
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x424355
call fcn.00461690
sub eax, ebx
sbb edx, dword [ebp - 0x1c]
add dword [edi], eax
adc dword [edi + 4], edx
mov edi, dword [esi + 0x12a8]
test edi, edi
je 0x424411
cmp dword [esi + 0x100c], 0
jne 0x424411
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x10]
cmp eax, 1
je 0x424411
cmp eax, 3
je 0x424411
cmp eax, 2
jne 0x4243b9
lea eax, [esi + 0x12bc]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
push ebx
mov ecx, esi
call fcn.00423ff0
inc dword [ebp - 0x18]
mov ecx, esi
call fcn.0041ab10
lea eax, [esi + 0x12bc]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp edi, dword [esi + 0x12dc]
jne 0x4243cb
mov dword [esi + 0x12dc], 0
mov ecx, dword [esi + 0x12a8]
test ecx, ecx
je 0x4243f7
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x4243e2
mov dword [edx], eax
jmp 0x4243e8
mov dword [esi + 0x12a4], eax
mov eax, dword [ecx + 4]
dec dword [esi + 0x12ac]
mov dword [esi + 0x12a8], eax
push ecx
lea ecx, [esi + 0x12b8]
call fcn.0045eba0
mov edi, dword [esi + 0x12a8]
test edi, edi
jne 0x424363
cmp dword [esi + 0x12ac], 0
je 0x424561
cmp dword [ebp - 0x20], 0
jne 0x424561
cmp dword [esi + 0x100c], 0
jne 0x424561
cmp dword [ebp + 8], 0
jne 0x4244a0
mov eax, dword [esi + 0x12a4]
test eax, eax
je 0x424471
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x12a8]
add edi, eax
cmp eax, edx
jb 0x42446d
mov ecx, dword [esi + 0x129c]
mov eax, dword [esi + 0x1290]
sub ecx, edi
add ecx, eax
sub edx, eax
cmp ecx, edx
cmovg edx, ecx
jmp 0x424477
sub edx, edi
jmp 0x424477
mov edx, dword [esi + 0x129c]
lea ecx, [edx - 0x1c]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
cmp eax, dword [esi + 0x12b4]
jle 0x4244a0
cmp dword [esi + 0x1014], 0
je 0x424561
cmp dword [ebp - 0x24], 0
jne 0x424561
lea eax, [esi + 0x12bc]
push eax
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea edi, [esi + 0xf44]
push edi
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
mov ecx, esi
call fcn.00424d30
mov ecx, dword [esi + 0x6a8]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ecx, 0x300
je 0x424525
mov eax, dword [esi + 0x1030]
cmp eax, 1
je 0x424525
cmp eax, 2
je 0x424519
xor ebx, ebx
mov dword [esi + 0x1030], 1
test ecx, 0x200
je 0x424519
push ecx
lea ecx, [esi + 0xf40]
call fcn.0045eba0
push 0x64
lea ecx, [esi + 0xf40]
call fcn.0045ea50
lea edi, [esi + 0xf44]
push ecx
lea ecx, [esi + 0xf40]
call fcn.0045eba0
cmp dword [esi + 0x1014], 0
je 0x42458b
push ecx
mov ecx, esi
call fcn.004258d0
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
lea eax, [esi + 0x12bc]
push eax
call dword [sym.imp.KERNEL30.dll_EnterCriticalSection]
cmp dword [esi + 0x100c], 0
je 0x4242d0
xor ebx, ebx
cmp dword [esi + 0x100c], ebx
sete bl
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL30.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
je 0x42453d
mov ebx, dword [ebp - 0x14]
mov eax, 1
cmp dword [ebp - 0x18], 0
cmove ebx, eax
mov dword [ebp - 0x14], ebx
jmp 0x424540