Function at 0x6c122330
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 edi, dword [ecx]
mov dword [ebp - 0x1c], 0
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 [0x6c1471a4], 8
jne 0x6c1223f0
test ebx, ebx
je 0x6c1224d4
mov dword [esp], edi
call sym._get_handle_object
mov edx, 6
mov edi, eax
test eax, eax
je 0x6c1223bf
cmp dword [eax], 1
jne 0x6c1223b1
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x6c1225a8
cmp eax, 3
je 0x6c122530
xor edx, edx
mov dword [esp], edi
mov dword [ebp - 0x2c], edx
call sym._WININET_Release
mov edx, dword [ebp - 0x2c]
test byte [0x6c1471a4], 8
jne 0x6c1224f8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
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
test esi, esi
je 0x6c122640
mov eax, esi
shr eax, 0x10
je 0x6c122588
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x40], 0x6c14c249
sub esp, 8
test eax, eax
jne 0x6c122431
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0_2
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x44], eax
test ebx, ebx
je 0x6c122630
mov eax, ebx
shr eax, 0x10
je 0x6c122618
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c249
test edx, edx
jne 0x6c122476
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0_2
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0xc], str.__p___s___u___s___p___lu___lx___Ix__n
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], str.InternetConnectW
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], 0x6c1471a4
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x40]
mov dword [esp], 3
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x44]
mov dword [esp + 0x18], edx
call sym._wine_dbg_log.constprop.0_5
test ebx, ebx
jne 0x6c122382
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 + 0x10], eax
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call sym._wine_dbg_log.constprop.0_5
mov edx, dword [ebp - 0x2c]
jmp 0x6c1223cc
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], edi
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp + 8], eax
call sym._HTTP_Connect
mov dword [esp], edi
mov edx, eax
mov dword [ebp - 0x2c], edx
call sym._WININET_Release
mov edx, dword [ebp - 0x2c]
jmp 0x6c1223bf
movzx eax, si
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
mov dword [ebp - 0x40], eax
jmp 0x6c122431
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], edi
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp + 8], eax
call sym._FTP_Connect
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x6c1223af
mov eax, dword [0x6c147300]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6c1223af
mov edx, dword [eax]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
jmp 0x6c1223b1
movzx eax, bx
mov dword [esp], 0x6c14c23c
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c122476
mov eax, 0x6c14c242
jmp 0x6c122476
mov dword [ebp - 0x40], 0x6c14c242
jmp 0x6c122431