Function at 0x6c1258e0
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x3c], eax
test byte [0x6c1451fc], 8
jne 0x6c1259a0
test ebx, ebx
je 0x6c125a88
mov dword [esp], edi
mov edi, 6
call fcn.6c1245c0
mov edx, eax
test eax, eax
je 0x6c125952
cmp dword [eax], 1
je 0x6c125980
mov dword [esp], edx
call fcn.6c1246b0
test byte [0x6c1451fc], 8
jne 0x6c125aa8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x6c125b50
cmp eax, 3
je 0x6c125ae0
xor edi, edi
jmp 0x6c12594a
test esi, esi
je 0x6c125be0
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x6c125b30
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x40], 0x6c14b9ad
sub esp, 8
test eax, eax
jne 0x6c1259e3
mov edx, 0xffffffff
mov eax, esi
call fcn.6c123990
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x44], eax
test ebx, ebx
je 0x6c125bf0
mov eax, ebx
shr eax, 0x10
test eax, eax
je 0x6c125bc8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c125a2a
mov edx, 0xffffffff
mov eax, ebx
call fcn.6c123990
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___s___u___s___p___lu___lx___Ix__n
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.InternetConnectW
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
test ebx, ebx
jne 0x6c125932
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.returning__p_n
mov dword [esp + 8], str.InternetConnectW
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.6c123f10
jmp 0x6c12595f
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x2c], edx
call fcn.6c1232f0
mov edx, dword [ebp - 0x2c]
mov edi, eax
jmp 0x6c12594a
mov dword [esp + 4], esi
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
mov dword [ebp - 0x40], eax
jmp 0x6c1259e3
mov dword [esp + 0x1c], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x2c], edx
call fcn.6c1105a0
mov edx, dword [ebp - 0x2c]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x6c125995
mov eax, dword [0x6c1451f8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edx, dword [ebp - 0x2c]
sub esp, 4
test eax, eax
je 0x6c125995
mov edi, dword [eax]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edi
jmp 0x6c12594a
mov dword [esp + 4], ebx
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c125a2a
mov dword [ebp - 0x40], 0x6c14b9a6
jmp 0x6c1259e3
mov eax, 0x6c14b9a6
jmp 0x6c125a2a