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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037726
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.1000c8b0
test eax, eax
jne 0x100090ed
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test esi, esi
je 0x10008da7
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008d8c
xor esi, esi
jmp 0x10008da7
lea edi, [eax + eax]
mov eax, edi
call fcn.10024ce0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024f0
mov edi, dword [ebp - 0x14]
mov esi, eax
cmp byte [esi], 0x20
jne 0x10008db6
lea esp, [esp]
inc esi
cmp byte [esi], 0x20
je 0x10008db0
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 0x100090ed
push 0x1003bc9c
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x10008dfe
lea ecx, [edi + 0x24]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
setne al
test al, al
jne 0x100090ed
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 0x100090ed
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
test edi, edi
jne 0x10008e33
xor eax, eax
jmp 0x10008e58
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008e42
xor eax, eax
jmp 0x10008e58
lea esi, [eax + eax]
mov eax, esi
call fcn.10024ce0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.100024f0
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x838]
push eax
call fcn.1000dcf0
test al, al
jne 0x100090ed
call fcn.1000d7e0
test al, al
je 0x100090ed
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 0x10008ee4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
test esi, esi
je 0x10008ec5
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x10008ec5
lea edi, [eax + eax]
mov eax, edi
call fcn.10024ce0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100090ed
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x100090ed
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1000cfa0
sub esi, eax
call fcn.1000cef0
cmp esi, eax
jae 0x10008f09
call fcn.1000cef0
test eax, eax
jg 0x100090d7
push 0xfe
lea eax, [ebp - 0x14f]
push 0
push eax
mov byte [ebp - 0x150], 0
call fcn.10023f90
push 0x3c
lea ecx, [ebp - 0x50]
push 0
push ecx
call fcn.10023f90
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 0x10008f58
xor eax, eax
jmp 0x10008f7d
push esi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x10008f67
xor eax, eax
jmp 0x10008f7d
lea edi, [eax + eax]
mov eax, edi
call fcn.10024ce0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024f0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008f80
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
sub eax, edx
mov ebx, eax
test esi, esi
jne 0x10008f99
xor eax, eax
jmp 0x10008fc2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10008fac
xor eax, eax
jmp 0x10008fc2
lea edi, [eax + eax]
mov eax, edi
call fcn.10024ce0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024f0
lea edx, [ebp - 0x50]
push edx
push 0
push ebx
push eax
call fcn.10015fa0
add esp, 0x10
call fcn.1000d0e0
test eax, eax
jle 0x10009001
lea eax, [ebp - 0x150]
push eax
call fcn.1000d400
add esp, 4
test eax, eax
jne 0x100090d7
lea eax, [ebp - 0x150]
push eax
call fcn.1000d240
add esp, 4
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [esi + 0x828], 1
call fcn.100081b0
cmp dword [esi + 0x828], 0
je 0x10008ec5
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 0x1000905e
xor eax, eax
jmp 0x10009087
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10009071
xor eax, eax
jmp 0x10009087
lea edi, [eax + eax]
mov eax, edi
call fcn.10024ce0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.100024f0
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 0x100090d7
push ebx
call fcn.100089d0
add esp, 4
cmp eax, 1
jne 0x100090d7
mov eax, dword [0x1004fd0c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x10008c80
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 0x100090ed
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