Function at 0x10008d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x828], 0
call fcn.1000c870
test eax, eax
jne 0x100090bd
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x10008d77
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008d5c
xor esi, esi
jmp 0x10008d77
lea edi, [eax + eax]
mov eax, edi
call fcn.10024d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024a0
mov edi, dword [ebp - 0x14]
mov esi, eax
cmp byte [esi], 0x20
jne 0x10008d86
lea esp, [esp]
inc esi
cmp byte [esi], 0x20
je 0x10008d80
push str.http:__
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.http:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x100090bd
push 0x1003bc9c
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x10008dce
lea ecx, [edi + 0x24]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
setne al
test al, al
jne 0x100090bd
push esi
push 0x1003bca8
lea edx, [edi + 0x24]
push 0x800
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [edi + 0x830]
add esp, 0x10
cmp dword [ebp + 8], eax
jne 0x100090bd
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
test edi, edi
jne 0x10008e03
xor eax, eax
jmp 0x10008e28
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008e12
xor eax, eax
jmp 0x10008e28
lea esi, [eax + eax]
mov eax, esi
call fcn.10024d60
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.100024a0
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x838]
push eax
call fcn.1000dcb0
test al, al
jne 0x100090bd
call fcn.1000d7a0
test al, al
je 0x100090bd
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x830]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x48]
mov dword [ebp - 4], edi
call eax
cmp eax, edi
jge 0x10008eb4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
test esi, esi
je 0x10008e95
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x10008e95
lea edi, [eax + eax]
mov eax, edi
call fcn.10024d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024a0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100090bd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x100090bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1000cf60
sub esi, eax
call fcn.1000ceb0
cmp esi, eax
jae 0x10008ed9
call fcn.1000ceb0
test eax, eax
jg 0x100090a7
push 0xfe
lea eax, [ebp - 0x14f]
push 0
push eax
mov byte [ebp - 0x150], 0
call fcn.10024010
push 0x3c
lea ecx, [ebp - 0x50]
push 0
push ecx
call fcn.10024010
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
add esp, 0x18
lea edx, [ebp - 0x150]
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0xff
test esi, esi
jne 0x10008f28
xor eax, eax
jmp 0x10008f4d
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008f37
xor eax, eax
jmp 0x10008f4d
lea edi, [eax + eax]
mov eax, edi
call fcn.10024d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008f50
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
sub eax, edx
mov ebx, eax
test esi, esi
jne 0x10008f69
xor eax, eax
jmp 0x10008f92
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10008f7c
xor eax, eax
jmp 0x10008f92
lea edi, [eax + eax]
mov eax, edi
call fcn.10024d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024a0
lea edx, [ebp - 0x50]
push edx
push 0
push ebx
push eax
call fcn.10015f40
add esp, 0x10
call fcn.1000d0a0
test eax, eax
jle 0x10008fd1
lea eax, [ebp - 0x150]
push eax
call fcn.1000d3c0
add esp, 4
test eax, eax
jne 0x100090a7
lea eax, [ebp - 0x150]
push eax
call fcn.1000d200
add esp, 4
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [esi + 0x828], 1
call fcn.10008180
cmp dword [esi + 0x828], 0
je 0x10008e95
push 0x40c
push 8
mov dword [esi + 0x828], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, esi
mov edx, dword [ecx + 0x830]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], edx
mov esi, dword [eax + 8]
test esi, esi
jne 0x1000902e
xor eax, eax
jmp 0x10009057
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10009041
xor eax, eax
jmp 0x10009057
lea edi, [eax + eax]
mov eax, edi
call fcn.10024d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024a0
push 0x400
push eax
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [0x1004fd0c]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100090a7
push ebx
call fcn.100089a0
add esp, 4
cmp eax, 1
jne 0x100090a7
mov eax, dword [0x1004fd0c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x10008c50
push 0x3e8
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100090bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8