Function at 0x409960
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 0x4ec01b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x53e01c]
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 0x4099db
cmp edi, 0x110
jne 0x409b3d
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xc0]
call dword [eax + 4]
cmp edi, 1
jne 0x409a81
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 [0x545df8]
test eax, eax
jne 0x409a48
lea ecx, [ebp - 0xb8]
call fcn.0041fb79
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x545df8], eax
push 0
push eax
push 0x30
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x41c632
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 0x409d4a
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc8]
cmp edi, 0x110
jne 0x409b3d
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 [0x545df8]
test eax, eax
jne 0x409af4
lea ecx, [ebp - 0xb8]
call fcn.0041fb79
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x545df8], eax
push 0
push eax
push 0x30
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x41c632
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 0x409d56
cmp edi, 2
jne 0x409bbf
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 0x409b70
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x409b70
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 0x409bb0
mov edi, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x409b9d
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x409b9d
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 0x409b82
mov eax, dword [esi + 0x54]
mov edi, dword [ebx + 0xc]
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], 0
jmp 0x409d4a
cmp edi, 5
jne 0x409d2b
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 0x409d4a
cmp ecx, 4
je 0x409d4a
cmp ecx, 1
je 0x409d4a
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 0x409c73
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 0x409cc1
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.0041b567
mov edi, dword [sym.imp.USER32.dll_IsRectEmpty]
lea eax, [ebp - 0x54]
push eax
call edi
test eax, eax
jne 0x409ce9
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 0x409cfe
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 0x409d4a
cmp edi, 0xf
jne 0x409e24
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 0x40a20f
mov ecx, dword [ebp - 0xc8]
movzx edx, cx
mov eax, edx
cmp edi, 0x202
jne 0x409f1b
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 0x40a20f
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xc0]
cmp edi, 0x203
jne 0x409f2c
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 0x40a1f9
cmp edi, 0x14
jne 0x409e7c
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 0x409e57
lea eax, [edi - 0x13]
jmp 0x409e60
mov dword [esi + 0x64], 0
xor eax, eax
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp dword [esi + 0x64], 0
je 0x409d60
mov eax, 1
jmp 0x40a291
cmp edi, 0x201
jne 0x409d60
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 0x409edc
mov byte [esi + 0x2f], al
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xc4]
call dword [edx + 0x34]
jmp 0x409ef5
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 0x40a20f
movsx ecx, ax
mov eax, dword [ebp - 0xc8]
shr eax, 0x10
jmp 0x409de0
cmp edi, 0x204
jne 0x409f6c
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 0x40a1f9
cmp edi, 0x205
jne 0x409fac
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 0x40a1f9
cmp edi, 0x206
jne 0x409fec
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 0x40a1f9
cmp edi, 0x200
jne 0x40a0ba
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.00418f80
mov cl, byte [esi + 0x2e]
test eax, eax
jne 0x40a05e
test cl, cl
je 0x40a075
mov byte [esi + 0x2e], al
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x54]
jmp 0x40a075
test cl, cl
jne 0x40a075
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 0x40a0ae
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 0x40a1f9
cmp edi, 0x2a3
jne 0x40a0ea
cmp byte [esi + 0x2e], 0
mov dword [esi + 0x64], 1
je 0x40a0da
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 0x40a1f9
cmp edi, 0x20a
jne 0x40a147
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 0x40a1f9
cmp edi, 0x20
jne 0x40a192
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 0x40a179
mov eax, dword [ebp - 0xbc]
xor ecx, ecx
mov dword [esi + 0x64], ecx
mov dword [eax], ecx
jmp 0x40a205
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 0x40a205
cmp edi, 0x215
jne 0x40a28f
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 0x40a1f9
cmp dword [0x545c18], 2
je 0x40a223
xor edi, edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x40a1f9
push 1
mov ecx, edi
call fcn.0041b7fb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
dec dword [edi + 4]
cmp dword [edi + 4], 0
jg 0x40a1f9
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 0x40a28f
mov eax, 1
jmp 0x40a291
mov eax, dword [0x545c1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40a1c5
mov edx, dword [eax]
mov edi, edx
mov ecx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x40a25b
cmp dword [eax + 0x10], ecx
jae 0x40a251
mov eax, dword [eax + 8]
jmp 0x40a255
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40a247
cmp byte [edi + 0xd], 0
jne 0x40a1c5
cmp ecx, dword [edi + 0x10]
jb 0x40a1c5
cmp edi, edx
je 0x40a1c5
mov edi, dword [edi + 0x14]
mov dword [ebp - 0xc8], edi
test edi, edi
je 0x40a1cd
inc dword [edi + 4]
jmp 0x40a1cd
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.0045b5b0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18