Function at 0x10018287
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x10068510]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x10051c0f
call fcn.10037ea9
mov eax, dword [ebp + 0x21c]
xor edi, edi
sub eax, edi
je 0x100183bf
dec eax
je 0x10018336
dec eax
dec eax
jne 0x10018304
mov dword [ebp - 4], edi
mov eax, dword [0x1006741c]
cmp eax, 0xffffffff
je 0x100182e2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
je 0x100182e2
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [0x10067420]
cmp eax, 0xffffffff
je 0x10018300
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, edi
je 0x10018300
push 1
mov ecx, eax
call fcn.10016d6f
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.10037e67
add ebp, 0x210
leave
ret 0xc
push 0x100567f8
push dword [ebp + 0x218]
push 0x100673b0
mov ecx, 0x10069b48
call fcn.100166eb
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x1006741c], eax
call esi
mov dword [0x10067420], eax
xor eax, eax
mov word [ebp + 0x208], ax
push 0x104
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x100183ac
push 0x5c
lea eax, [ebp]
push eax
call fcn.100394a0
pop ecx
pop ecx
cmp eax, edi
je 0x100183ac
push 0x10056b40
add eax, 2
push eax
call fcn.10038ffd
pop ecx
pop ecx
test eax, eax
je 0x100183ac
mov dword [0x10067424], edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x10069b44], eax
jmp 0x10018304
mov dword [ebp - 4], 2
mov eax, dword [0x1006741c]
cmp eax, 0xffffffff
je 0x100183d7
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x10067420]
cmp eax, 0xffffffff
je 0x100183e8
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp dword [0x10069bf0], edi
je 0x100183fc
push dword [0x10069bf4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [0x10069bcc]
cmp eax, edi
je 0x1001840c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10069bc8]
cmp eax, edi
je 0x1001841c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10069bc4]
cmp eax, edi
je 0x1001842c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10069bc0], edi
je 0x1001843e
mov ecx, 0x100698a4
call fcn.10001e2c
mov eax, dword [0x10069b44]
cmp eax, edi
je 0x1001844e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10069bc4], edi
mov dword [0x10069bc8], edi
mov dword [0x10069bcc], edi
lea ecx, [ebp - 0x14]
call fcn.10005ad2
mov byte [ebp - 4], 3
push edi
lea eax, [ebp - 0x14]
push eax
push edi
call sub.urlmon.dll_CoInternetGetSession
test eax, eax
jne 0x100184f6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push str.http
push dword [0x10069b78]
push eax
call dword [ecx + 0x10]
mov eax, dword [0x10069b78]
cmp eax, edi
je 0x100184a4
mov dword [0x10069b78], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push str.https
push dword [0x10069b7c]
push eax
call dword [ecx + 0x10]
mov eax, dword [0x10069b7c]
cmp eax, edi
je 0x100184cd
mov dword [0x10069b7c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x10056b20
push dword [0x10069b80]
push eax
call dword [ecx + 0x10]
mov eax, dword [0x10069b80]
cmp eax, edi
je 0x100184f6
mov dword [0x10069b80], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, 0x10069b48
call fcn.10016d1d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.1001e586
or dword [ebp - 4], 0xffffffff
jmp 0x10018304