Function at 0x403700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44294e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x45a024]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x45a024]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
cmp eax, 0x111
ja 0x4039ad
je 0x40396c
lea ecx, [eax - 1]
cmp ecx, 0x4d
ja case.0x4039cc.278
movzx ecx, byte [ecx + 0x403aac]
jmp dword [ecx*4 + 0x403a94]
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
mov ecx, ebx
call eax
jmp 0x403857
mov eax, dword [0x4612ac]
mov edi, dword [edi]
mov dword [esp + 0x20], edi
test eax, eax
jne 0x4037a0
mov dword [0x4612ac], eax
push edi
call fcn.004020c0
lea ecx, [esp + 0x30]
push ecx
push ebx
mov edi, eax
call fcn.00403030
cmp dword [eax + 0x14], 8
jb 0x4037bb
mov eax, dword [eax]
push str.ReBarWindow32
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea esi, [esp + 0x30]
setne byte [esp + 0x1b]
call fcn.004013a0
cmp byte [esp + 0x1b], 0
je 0x403834
test edi, edi
je 0x4037f2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
jmp 0x403827
mov esi, dword [0x4612ac]
test esi, esi
jne 0x403802
mov dword [0x4612ac], esi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, esi
call fcn.004020c0
test eax, eax
je 0x403834
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, eax
mov edx, dword [edx + 0x50]
call edx
test eax, eax
jne 0x403a6d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
push ecx
push edx
mov ecx, ebx
call eax
test eax, eax
jne 0x403a6d
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
push edi
push esi
push eax
test ecx, ecx
je 0x403a64
mov eax, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x403a6d
cmp dword [ebx + 0x18], 0
jne case.0x4039cc.278
mov ecx, dword [ebx + 4]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_GetUpdateRect]
mov edi, ebx
test eax, eax
je 0x4038d0
lea edx, [esp + 0x5c]
push edx
call fcn.004016b0
mov dword [esp + 0xc0], 0
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401750
xor eax, eax
jmp 0x403a6d
lea eax, [esp + 0x20]
push eax
call fcn.004015e0
mov dword [esp + 0xc0], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov dword [esp + 0xc0], 0xffffffff
lea edi, [esp + 0x20]
mov dword [esp + 0x20], vtable.Win32xx::CDC.0
call fcn.00401b20
xor eax, eax
jmp 0x403a6d
push esi
lea esi, [esp + 0x2c]
call fcn.004017c0
mov dword [esp + 0xc0], 2
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
lea edi, [esp + 0x28]
mov esi, eax
call fcn.00401a70
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0x28], vtable.Win32xx::CDC.0
call fcn.00401b20
test esi, esi
je 0x40384f
mov eax, 1
jmp 0x403a6d
mov eax, dword [0x4612ac]
test eax, eax
jne 0x40397a
mov dword [0x4612ac], eax
push edi
call fcn.004020c0
test eax, eax
je 0x403993
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 0x30]
push esi
call eax
test eax, eax
jne 0x4039a6
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
push edi
push esi
mov ecx, ebx
call eax
test eax, eax
je 0x403857
xor eax, eax
jmp 0x403a6d
cmp eax, 0x210
ja 0x4039ec
je case.0x4039cc.276
lea ecx, [eax - 0x114]
cmp ecx, 0x24
ja case.0x4039cc.278
movzx ecx, byte [ecx + 0x403b04]
jmp dword [ecx*4 + 0x403afc]
mov edx, dword [ebx + 4]
push edi
push esi
push eax
push edx
call fcn.004030d0
test eax, eax
je 0x403857
jmp 0x403a6d
mov ecx, eax
sub ecx, 0x800e
je 0x403a55
sub ecx, 5
jne case.0x4039cc.278
mov eax, dword [0x4612ac]
test eax, eax
jne 0x403a0d
mov dword [0x4612ac], eax
mov eax, dword [eax + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
cmp ecx, eax
je 0x403853
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.00412d70
mov edi, dword [esi + 0x30]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00405b00
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esi + 0x30], edx
jmp 0x40384f
mov eax, dword [ebx]
mov edx, dword [eax + 0x44]
push esi
mov ecx, ebx
call edx
jmp 0x403857
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0041af7a
mov esp, ebp
pop ebp
ret 0xc