Function at 0x40a650
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48917b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xbc], eax
cmp edi, 1
je 0x40a6cb
cmp edi, 0x110
jne 0x40a82d
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xc0]
call dword [eax + 4]
cmp edi, 1
jne 0x40a771
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], edi
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc0], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [0x4bc9f4]
test eax, eax
jne 0x40a738
lea ecx, [ebp - 0xb8]
call fcn.0042027e
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4bc9f4], eax
push 0
push eax
push 0x30
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x41cbd4
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xc8]
call dword [eax + 0x84]
jmp 0x40aa3a
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc8]
cmp edi, 0x110
jne 0x40a82d
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc0], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [0x4bc9f4]
test eax, eax
jne 0x40a7e4
lea ecx, [ebp - 0xb8]
call fcn.0042027e
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4bc9f4], eax
push 0
push eax
push 0x30
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x41cbd4
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xc8]
push dword [ebp - 0xc4]
mov eax, dword [eax + 0x7c]
call eax
mov ecx, dword [ebp - 0xbc]
movzx eax, al
mov dword [ecx], eax
jmp 0x40aa46
cmp edi, 2
jne 0x40a8af
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], 1
call dword [eax + 0x88]
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x60], 0
test ecx, ecx
je 0x40a860
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x40a860
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0xc0], eax
cmp eax, ecx
je 0x40a8a0
mov edi, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x40a88d
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x40a88d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0xc0]
add eax, 8
mov dword [ebp - 0xc0], eax
cmp eax, edi
jne 0x40a872
mov eax, dword [esi + 0x54]
mov edi, dword [ebx + 0xc]
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], 0
jmp 0x40aa3a
cmp edi, 5
jne 0x40aa1b
movsx eax, dx
mov dword [ebp - 0xd0], eax
mov eax, edx
shr eax, 0x10
movsx edx, ax
mov dword [ebp - 0xcc], edx
mov dword [esi + 0x64], 0
cmp ecx, 3
je 0x40aa3a
cmp ecx, 4
je 0x40aa3a
cmp ecx, 1
je 0x40aa3a
mov eax, dword [ebp - 0xd0]
mov ecx, esi
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], edx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x44]
movups xmm1, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd edx, xmm0
movups xmmword [ebp - 0x24], xmm1
movups xmm1, xmmword [ebp - 0x44]
sub edx, eax
mov eax, ecx
sub eax, edi
cmp eax, edx
je 0x40a963
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
movd eax, xmm1
cmp ecx, edi
movups xmmword [ebp - 0x54], xmm1
cmovg eax, ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x18]
movaps xmm0, xmm1
sub ecx, dword [ebp - 0x20]
psrldq xmm0, 0xc
movd edi, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
mov eax, edi
sub eax, edx
mov dword [ebp - 0xd4], edx
cmp eax, ecx
je 0x40a9b1
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
movups xmmword [ebp - 0x34], xmm1
sub edi, eax
psrldq xmm1, 4
cmp edi, dword [ebp - 0xd4]
movd eax, xmm1
cmovg eax, edi
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0041ba13
mov edi, dword [sym.imp.USER32.dll_IsRectEmpty]
lea eax, [ebp - 0x54]
push eax
call edi
test eax, eax
jne 0x40a9d9
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
mov ecx, esi
call dword [eax + 0x24]
lea eax, [ebp - 0x34]
push eax
call edi
test eax, eax
jne 0x40a9ee
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov edi, dword [esi]
mov ecx, esi
mov eax, edi
push 1
mov eax, dword [eax + 0x18]
call eax
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call dword [edi + 0x70]
mov eax, dword [esi]
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, esi
call dword [eax + 0x80]
mov edi, dword [ebx + 0xc]
jmp 0x40aa3a
cmp edi, 0xf
jne 0x40ab14
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 0x78]
call eax
movzx eax, al
mov dword [esi + 0x64], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], 0
cmp dword [esi + 0x64], 0
jne 0x40aeff
mov ecx, dword [ebp - 0xc8]
movzx edx, cx
mov eax, edx
cmp edi, 0x202
jne 0x40ac0b
movsx eax, dx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xdc], eax
mov eax, ecx
shr eax, 0x10
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cwde
mov dword [ebp - 0xd8], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0xc4]
mov ecx, esi
mov dword [esi + 0x64], 1
call dword [eax + 0x38]
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x64], 0
mov byte [esi + 0x2f], 0
mov dword [eax], 0
cmp dword [esi + 0x64], 0
jne 0x40aeff
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc0]
cmp edi, 0x203
jne 0x40ac1c
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xdc]
cwde
mov dword [ebp - 0xd8], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0xc4]
mov ecx, esi
mov dword [esi + 0x64], 1
mov byte [esi + 0x2f], 0
call dword [eax + 0x3c]
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x14
jne 0x40ab6c
mov dword [esi + 0x64], 1
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 4], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x74]
call eax
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x40ab47
lea eax, [edi - 0x13]
jmp 0x40ab50
mov dword [esi + 0x64], 0
xor eax, eax
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp dword [esi + 0x64], 0
je 0x40aa50
mov eax, 1
jmp 0x40af81
cmp edi, 0x201
jne 0x40aa50
movzx eax, dx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
cwde
mov dword [ebp - 0xd0], eax
mov eax, edx
shr eax, 0x10
cwde
mov dword [ebp - 0xcc], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 0x8c]
call eax
mov edx, dword [esi]
mov ecx, esi
cmp eax, 1
jne 0x40abcc
mov byte [esi + 0x2f], al
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xc4]
call dword [edx + 0x34]
jmp 0x40abe5
push 0
or eax, 0xf010
push eax
mov eax, dword [edx + 8]
push 0x112
call eax
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xd4]
mov dword [esi + 0x64], 0
movzx eax, ax
mov dword [ecx], 0
cmp dword [esi + 0x64], 0
jne 0x40aeff
movsx ecx, ax
mov eax, dword [ebp - 0xc8]
shr eax, 0x10
jmp 0x40aad0
cmp edi, 0x204
jne 0x40ac5c
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xdc]
cwde
mov dword [ebp - 0xd8], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0xc4]
mov ecx, esi
mov dword [esi + 0x64], 1
mov byte [esi + 0x30], 1
call dword [eax + 0x40]
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x205
jne 0x40ac9c
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xdc]
cwde
mov dword [ebp - 0xd8], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0xc4]
mov ecx, esi
mov dword [esi + 0x64], 1
call dword [eax + 0x44]
mov byte [esi + 0x30], 1
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x206
jne 0x40acdc
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xdc]
cwde
mov dword [ebp - 0xd8], eax
mov eax, dword [esi]
push ecx
push dword [ebp - 0xc4]
mov ecx, esi
mov dword [esi + 0x64], 1
mov byte [esi + 0x30], 0
call dword [eax + 0x48]
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x200
jne 0x40adaa
mov edi, dword [ebp - 0xc4]
cwde
mov dword [ebp - 0xd0], ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x64], 1
call dword [eax + 0x4c]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
push ecx
mov ecx, esi
movups xmmword [ebp - 0x24], xmm0
call dword [eax + 0x1c]
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x24]
push dword [ebp - 0xd0]
call fcn.004190a0
mov cl, byte [esi + 0x2e]
test eax, eax
jne 0x40ad4e
test cl, cl
je 0x40ad65
mov byte [esi + 0x2e], al
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x54]
jmp 0x40ad65
test cl, cl
jne 0x40ad65
mov eax, dword [esi]
lea ecx, [ebp - 0xd0]
push ecx
push edi
mov ecx, esi
mov byte [esi + 0x2e], 1
call dword [eax + 0x50]
cmp byte [esi + 0x6c], 0
jne 0x40ad9e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], 2
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
test eax, eax
setne al
mov byte [esi + 0x6c], al
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x2a3
jne 0x40adda
cmp byte [esi + 0x2e], 0
mov dword [esi + 0x64], 1
je 0x40adca
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x2e], 0
call dword [eax + 0x54]
mov byte [esi + 0x6c], 0
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x20a
jne 0x40ae37
cwde
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [esi]
mov dword [ebp - 0xd0], ecx
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 8]
call eax
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xd0]
mov edx, dword [esi]
push eax
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
mov ecx, esi
push eax
call dword [edx + 0x58]
mov dword [esi + 0x64], 0
jmp 0x40aee9
cmp edi, 0x20
jne 0x40ae82
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 8]
call eax
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40ae69
mov eax, dword [ebp - 0xbc]
xor ecx, ecx
mov dword [esi + 0x64], ecx
mov dword [eax], ecx
jmp 0x40aef5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x2c]
call eax
movzx ecx, al
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x64], ecx
mov dword [eax], ecx
jmp 0x40aef5
cmp edi, 0x215
jne 0x40af7f
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x64], 1
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc8], eax
je 0x40aee9
cmp dword [0x4bc7d0], 2
je 0x40af13
xor edi, edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x40aee9
push 1
mov ecx, edi
call fcn.0041bca7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
dec dword [edi + 4]
cmp dword [edi + 4], 0
jg 0x40aee9
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
mov eax, dword [ebp - 0xbc]
mov dword [eax], 0
cmp dword [esi + 0x64], 0
je 0x40af7f
mov eax, 1
jmp 0x40af81
mov eax, dword [0x4bc7d4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40aeb5
mov edx, dword [eax]
mov edi, edx
mov ecx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40af4b
cmp dword [eax + 0x10], ecx
jae 0x40af41
mov eax, dword [eax + 8]
jmp 0x40af45
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40af37
cmp byte [edi + 0xd], 0
jne 0x40aeb5
cmp ecx, dword [edi + 0x10]
jb 0x40aeb5
cmp edi, edx
je 0x40aeb5
mov edi, dword [edi + 0x14]
mov dword [ebp - 0xc8], edi
test edi, edi
je 0x40aebd
inc dword [edi + 4]
jmp 0x40aebd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18