Function at 0x41e9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x90
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41fed0
mov dword [ebp - 0x5c], edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov esi, dword [ecx]
test esi, esi
je 0x41ea40
cmp esi, 3
je 0x41ed19
cmp esi, 1
je 0x41ee78
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x41ee98
mov eax, dword [0x43a064]
test eax, eax
je 0x41ea57
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x41ea73
cmp dword [eax], 1
mov dword [ebp - 0x10], 0xffffffff
jne 0x41ea73
add eax, 4
jmp 0x41ea87
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov edx, 2
lock cmpxchg dword [ecx], edx
mov esi, eax
jne 0x41e9e8
jmp 0x41ece7
mov ecx, 0x43a064
mov dword [ebp - 0x10], 0xffffffff
call fcn.00411cb0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x41ea20
mov dword [ebp - 0x10], 0xffffffff
call fcn.00411e00
test eax, eax
je 0x41ed70
mov ecx, eax
call fcn.00411ef0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
nop dword [eax]
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x41ecb7
mov ecx, dword [ebp - 0x2c]
mov eax, esi
lea edx, [ebp - 0x56]
and eax, 0xfffffffc
mov dword [ebp - 0x54], eax
mov eax, esi
lock cmpxchg dword [ecx], edx
mov esi, eax
jne 0x41eaa0
jmp 0x41eca7
mov eax, dword [0x43a064]
test eax, eax
jne 0x41eaea
mov ecx, 0x43a064
mov dword [ebp - 0x10], 1
call fcn.00411cb0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x41eb10
cmp dword [eax], 1
mov dword [ebp - 0x10], 1
jne 0x41eb10
add eax, 4
mov ecx, eax
call fcn.00411ef0
jmp 0x41eb2b
mov dword [ebp - 0x10], 1
call fcn.00411e00
test eax, eax
je 0x41ed70
mov ecx, eax
call fcn.00411ef0
mov ecx, eax
mov dword [ebp - 0x24], eax
mov eax, 2
xor edx, edx
lock cmpxchg dword [ecx + 0x18], edx
je 0x41ec90
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 2
call fcn.00412f90
call fcn.00413760
test eax, eax
je 0x41ed81
mov esi, dword [ebp - 0x28]
cmp dword [eax], 0
mov dl, byte [esi + 0x20]
setne al
lea ecx, [esi + 0x1c]
test dl, dl
jne 0x41ed9e
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], al
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi + 0x18], edx
jne 0x41ec40
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [ebp - 0x34]
movzx edx, byte [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], dl
mov esi, dword [eax]
xor eax, eax
lock cmpxchg dword [ecx + 0x28], esi
je 0x41ebc3
cmp eax, esi
jne 0x41ed2d
mov eax, dword [ecx + 0x24]
mov edx, dword [0x43a9ec]
mov dword [ebp - 0x10], 4
test edx, edx
jne 0x41ec04
mov ecx, str.SleepConditionVariableSRWcondition_variables_not_available
mov edx, 0x19
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], esi
call fcn.004123d0
test eax, eax
mov eax, 0x41b4d0
cmove edx, eax
mov eax, edx
xchg dword [0x43a9ec], eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x60]
push 0
push 0xffffffffffffffff
push esi
push eax
call edx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 4]
test cl, cl
movzx ecx, byte [ebp - 0x48]
jne 0x41ed4d
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], cl
mov eax, 2
xor edx, edx
lock cmpxchg dword [esi + 0x18], edx
jne 0x41eba0
jmp 0x41ec5d
cmp eax, 2
jne 0x41eda6
mov eax, dword [ebp - 0x24]
xor ecx, ecx
xchg dword [eax + 0x18], ecx
cmp ecx, 2
mov dword [ebp - 0x64], ecx
jne 0x41edca
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x10], 2
jne 0x41ec89
mov dword [ebp - 0x28], eax
call fcn.00413760
test eax, eax
je 0x41ed81
cmp dword [eax], 0
mov eax, dword [ebp - 0x28]
je 0x41ec89
mov byte [eax + 4], 1
mov ecx, dword [eax]
call fcn.004130b0
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
jne 0x41eca7
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 1
call fcn.00412270
mov al, byte [ebp - 0x50]
test al, al
je 0x41ead0
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x41e9e8
lock dec dword [eax]
jne 0x41e9e8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], 0xffffffff
call fcn.00412270
test esi, esi
jne 0x41e9ec
jmp 0x41ea40
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x48], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
push 0
push dword [ebp - 0x5c]
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.0041ef60
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 4
mov ecx, str.attempted_to_use_a_condition_variable_with_two_mutexes
mov edx, 0x36
push 0x431f98
call fcn.00413080
add esp, 4
ud2
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], cl
lea eax, [ebp - 0x4c]
mov ecx, 0x4313d3
mov edx, 0x2b
push 0x431ef4
push eax
call fcn.00408870
add esp, 8
ud2
mov ecx, 0x4312b5
mov edx, 0x5e
call fcn.00408800
ud2
lea eax, [ebp - 0x4c]
mov ecx, str.cannot_access_a_TLS_value_during_or_after_it_is_destroyed
mov edx, 0x39
push 0x4315ac
push eax
call fcn.00408870
add esp, 8
ud2
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x48], al
jmp 0x41ed53
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 3
mov ecx, str.inconsistent_park_state
mov edx, 0x17
push 0x431f1c
call fcn.00413080
add esp, 4
jmp 0x41ed4b
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x9c], 0x431f38
mov dword [ebp - 0x98], 3
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x4c], 0x431f30
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x6c], 0x431f2c
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], 0x412db0
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x84]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x78], 0x412db0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x9c]
mov edx, 0x431f50
mov dword [ebp - 0x70], 0x409b40
mov dword [ebp - 0x88], 3
call fcn.00419b40
jmp 0x41ed4b
mov ecx, 0x432393
mov edx, 0x2a
mov dword [ebp - 0x10], 0xffffffff
push 0x4323c0
call fcn.00413080
add esp, 4
ud2
mov ecx, str.assertion_failed:_state__STATE_MASK__RUNNING
mov edx, 0x2f
mov dword [ebp - 0x10], 0xffffffff
push 0x432400
call fcn.00413080
add esp, 4
ud2