Function at 0x412400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa1a0
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
push ebx
push esi
push edi
mov eax, dword [0x53f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [esi], vtable.MessageLoop.0
cmp dword [0x543fdc], 1
mov dword [ebp - 0x18], ebx
jne 0x4124cc
call fcn.00414650
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push str.this__current__
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00414e00
add esp, 4
test eax, eax
je 0x412492
push eax
push 3
push 0x7f
push str.f:my_lab_tabexplorerextab_masterlibrary_basemessage_loop.cpp
lea ecx, [ebp - 0xe0]
call fcn.0040ec90
lea ecx, [ebp - 0xe0]
call fcn.0040f1c0
cmp dword [0x543fdc], 1
jne 0x4124cc
cmp dword [esi + 0xb4], ebx
je 0x4124cc
push 3
push 0x81
push str.f:my_lab_tabexplorerextab_masterlibrary_basemessage_loop.cpp
lea ecx, [ebp - 0xe0]
call fcn.0040eda0
mov edx, str.Check_failed:__state_.
lea ecx, [eax + 8]
call fcn.00405a30
mov ebx, 1
test bl, 1
je 0x4124df
lea ecx, [ebp - 0xe0]
and ebx, 0xfffffffe
call fcn.0040f1c0
xor edi, edi
mov ecx, esi
call fcn.00413a30
mov ecx, esi
call fcn.00413900
mov ecx, esi
call fcn.00413a30
test al, al
je 0x412500
inc edi
cmp edi, 0x64
jl 0x4124e1
cmp dword [0x543fdc], 1
jne 0x412564
test al, al
je 0x412564
sub esp, 8
mov dword [ebp - 0xe0], 3
lea ecx, [ebp - 0xd8]
or ebx, 2
call fcn.00406290
mov dword [ebp - 0x3c], str.f:my_lab_tabexplorerextab_masterlibrary_basemessage_loop.cpp
mov dword [ebp - 0x38], 0x93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x93
push str.f:my_lab_tabexplorerextab_masterlibrary_basemessage_loop.cpp
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x34], eax
call fcn.0040ee30
mov edx, str.Check_failed:__did_work.
lea ecx, [ebp - 0xd8]
call fcn.00405a30
test bl, 2
je 0x412577
lea ecx, [ebp - 0xe0]
and ebx, 0xfffffffd
call fcn.0040f1c0
lea edi, [esi + 0x50]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], edi
push eax
mov ecx, edi
call fcn.00423de0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x41259d
mov eax, 1
lock xadd dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
test ecx, ecx
je 0x4125c2
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x4125c2
test ecx, ecx
je 0x4125c2
push 8
push ecx
call fcn.004d1750
add esp, 8
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x20], edi
cmp dword [ecx + 0x14], edi
jne 0x4125d4
or eax, 0xffffffff
jmp 0x4125dd
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
sar eax, 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
call fcn.00414b30
mov esi, dword [ebp - 0x14]
inc dword [eax + 0x10]
test esi, esi
je 0x412642
test bl, 4
je 0x412608
lea ecx, [ebp - 0xe0]
and ebx, 0xfffffffb
call fcn.0040f1c0
cmp byte [esi + 5], 0
je 0x412642
lea ecx, [ebp - 0x28]
call fcn.00414b30
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 2
cmp eax, ecx
cmovb ecx, eax
cmp edi, ecx
jae 0x412642
nop dword [eax]
cmp dword [edx + edi*4], 0
jne 0x412ae5
inc edi
mov dword [ebp - 0x20], edi
cmp edi, ecx
jb 0x412630
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4126a1
test bl, 8
je 0x412663
lea ecx, [ebp - 0xe0]
call fcn.0040f1c0
cmp byte [edi + 5], 0
je 0x412686
lea ecx, [ebp - 0x28]
call fcn.00414b30
add dword [eax + 0x10], 0xffffffff
jne 0x412686
lea ecx, [ebp - 0x28]
call fcn.00414b30
mov ecx, eax
call fcn.00414c10
test edi, edi
je 0x4126a1
or eax, 0xffffffff
lock xadd dword [edi], eax
sub eax, 1
jne 0x4126a1
push 8
push edi
call fcn.004d1750
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, dword [esi + 0xe8]
test edx, edx
je 0x4126d8
lea edi, [edx + 4]
or eax, 0xffffffff
lock xadd dword [edi], eax
sub eax, 1
jne 0x4126d8
xor ecx, ecx
test edi, edi
cmovne ecx, edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 0xe8], 0
call fcn.00414650
xor edx, edx
mov ecx, eax
call fcn.00423f60
mov eax, dword [esi + 0xc0]
or eax, dword [esi + 0xc4]
je 0x412729
cmp byte [0x544494], 0
je 0x412715
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
dec dword [0x5444a0]
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [ebp - 4], 1
mov edx, dword [esi + 0xe8]
test edx, edx
je 0x412755
lea edi, [edx + 4]
or eax, 0xffffffff
lock xadd dword [edi], eax
sub eax, 1
jne 0x412755
xor ecx, ecx
test edi, edi
cmovne ecx, edx
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [esi + 0xd0]
call fcn.00414a10
lea eax, [esi + 0x9c]
mov dword [ebp - 4], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4127d7
nop
mov eax, dword [esi + 0x94]
dec eax
add eax, ecx
mov ecx, dword [esi + 0x90]
dec ecx
and ecx, eax
mov eax, dword [esi + 0x8c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4127ba
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x4127ba
test edx, edx
je 0x4127ba
mov eax, dword [ecx]
push 1
call dword [eax]
add dword [esi + 0x98], 0xffffffff
jne 0x4127cd
mov dword [esi + 0x94], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x412780
mov edi, dword [esi + 0x90]
test edi, edi
je 0x4127fe
mov eax, dword [esi + 0x8c]
dec edi
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4127fa
push 0x20
push eax
call fcn.004d1750
add esp, 8
test edi, edi
jne 0x4127e1
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x41283d
mov eax, dword [esi + 0x90]
lea edx, [eax*4]
cmp edx, 0x1000
jb 0x412833
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x412b09
mov ecx, edi
push edx
push ecx
call fcn.004d1750
add esp, 8
mov dword [esi + 0x90], 0
mov dword [esi + 0x8c], 0
push 8
push dword [esi + 0x88]
call fcn.004d1750
mov dword [esi + 0x88], 0
add esp, 8
mov ecx, dword [esi + 0x80]
cmp ecx, 0x10
jb 0x4128a2
mov eax, dword [esi + 0x6c]
inc ecx
cmp ecx, 0x1000
jb 0x412898
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b09
mov eax, edx
push ecx
push eax
call fcn.004d1750
add esp, 8
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0xf
mov byte [esi + 0x6c], 0
lea ecx, [esi + 0x50]
call fcn.00414a10
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x4128e6
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x4128e6
test edx, edx
je 0x4128e6
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x412935
nop dword [eax]
mov eax, dword [esi + 0x44]
dec eax
add ecx, eax
mov eax, dword [esi + 0x40]
dec eax
and ecx, eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x412921
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x412921
test edx, edx
je 0x412921
mov eax, dword [ecx]
push 1
call dword [eax]
add dword [esi + 0x48], 0xffffffff
jne 0x41292e
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x4128f0
mov edi, dword [esi + 0x40]
test edi, edi
je 0x41295a
nop dword [eax]
mov eax, dword [esi + 0x3c]
dec edi
mov eax, dword [eax + edi*4]
test eax, eax
je 0x412956
push 0x20
push eax
call fcn.004d1750
add esp, 8
test edi, edi
jne 0x412940
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41298f
mov ecx, dword [esi + 0x40]
shl ecx, 2
cmp ecx, 0x1000
jb 0x412985
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b09
mov eax, edx
push ecx
push eax
call fcn.004d1750
add esp, 8
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
push 8
push dword [esi + 0x38]
call fcn.004d1750
mov dword [esi + 0x38], 0
add esp, 8
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x412a0c
mov edx, dword [esi + 0x20]
push ecx
call fcn.004152a0
mov ecx, dword [esi + 0x24]
add esp, 4
mov eax, dword [esi + 0x1c]
sub ecx, eax
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x4129ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b09
mov eax, edx
push ecx
push eax
call fcn.004d1750
mov dword [esi + 0x1c], 0
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x412a58
mov eax, dword [esi + 0x14]
dec eax
add ecx, eax
mov eax, dword [esi + 0x10]
dec eax
and ecx, eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x412a44
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x412a44
test edx, edx
je 0x412a44
mov eax, dword [ecx]
push 1
call dword [eax]
add dword [esi + 0x18], 0xffffffff
jne 0x412a51
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x412a13
mov edi, dword [esi + 0x10]
test edi, edi
je 0x412a7a
nop
mov eax, dword [esi + 0xc]
dec edi
mov eax, dword [eax + edi*4]
test eax, eax
je 0x412a76
push 0x20
push eax
call fcn.004d1750
add esp, 8
test edi, edi
jne 0x412a60
mov eax, dword [esi + 0xc]
test eax, eax
je 0x412aab
mov ecx, dword [esi + 0x10]
shl ecx, 2
cmp ecx, 0x1000
jb 0x412aa1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b09
mov eax, edx
push ecx
push eax
call fcn.004d1750
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
push 8
push dword [esi + 8]
call fcn.004d1750
mov dword [esi + 8], 0
add esp, 8
mov dword [esi], vtable.base::MessagePump::Delegate.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ecx
jae 0x412642
mov eax, edi
mov ecx, dword [edx + eax*4]
lea edi, [eax + 1]
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x412642
mov eax, dword [ecx]
call dword [eax]
jmp 0x4125f1
call fcn.004da89d
int3