Function at 0x6c122390
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 0x6c122450
test ebx, ebx
je 0x6c122534
mov dword [esp], edi
call sym._get_handle_object
mov edx, 6
mov edi, eax
test eax, eax
je 0x6c12241f
cmp dword [eax], 1
jne 0x6c122411
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x6c122608
cmp eax, 3
je 0x6c122590
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 0x6c122558
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 0x6c1226a0
mov eax, esi
shr eax, 0x10
je 0x6c1225e8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x40], 0x6c14c24d
sub esp, 8
test eax, eax
jne 0x6c122491
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 0x6c122690
mov eax, ebx
shr eax, 0x10
je 0x6c122678
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14c24d
test edx, edx
jne 0x6c1224d6
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 0x6c1223e2
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 0x6c12242c
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 0x6c12241f
movzx eax, si
mov dword [esp], 0x6c14c240
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
mov dword [ebp - 0x40], eax
jmp 0x6c122491
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 0x6c12240f
mov eax, dword [0x6c147300]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6c12240f
mov edx, dword [eax]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
jmp 0x6c122411
movzx eax, bx
mov dword [esp], 0x6c14c240
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_4
jmp 0x6c1224d6
mov eax, 0x6c14c246
jmp 0x6c1224d6
mov dword [ebp - 0x40], 0x6c14c246
jmp 0x6c122491