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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100549d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x10062648]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [0x1008b958], 0
mov dword [esp + 0x14], 0
jne 0x100343ab
push 0x2afb
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call fcn.10009630
call fcn.10032a00
test esi, esi
je 0x1003460d
push 0x1008b220
push esi
call fcn.1003a949
add esp, 8
test eax, eax
je 0x1003460d
push 0x3a
push esi
call fcn.1003b630
add esp, 8
test eax, eax
jne 0x1003460d
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1003460d
push 0x10059cb4
push esi
call fcn.1003a949
add esp, 8
test eax, eax
je 0x1003460d
mov ecx, esi
call fcn.10018150
test eax, eax
je 0x1003460d
call fcn.10032e60
test al, al
jne 0x1003460d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call fcn.10001a10
call fcn.1000af60
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x1008b848
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x23], 0
lea edi, [esp + 0x23]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.10001a10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push esi
mov dword [esp + 0x78], 0
call fcn.10001a10
mov edx, edi
mov ecx, 0x1008be10
mov dword [esp + 0x74], 0xffffffff
call fcn.10015050
cmp byte [esp + 0x13], 0
jne 0x100344c9
push 0
push 0x1008b848
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
xor ecx, ecx
test ebx, ebx
sete cl
mov edx, esi
push ecx
push 1
mov ecx, eax
call fcn.1002e500
add esp, 0xc
test ebx, ebx
jne 0x100344d4
cmp byte [esp + 0x13], 1
jne 0x100344ea
push esi
call fcn.100341b0
test eax, eax
jne 0x10034614
test ebx, ebx
jne 0x10034397
lea edx, [esp + 0x14]
push edx
push esi
call fcn.1002df20
test eax, eax
jne 0x10034548
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push esi
call fcn.10001a10
call fcn.1000b160
test eax, eax
je 0x10034529
push esi
call fcn.100341b0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10064170]
cmp eax, 0xffffffff
je 0x100345c2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10034574
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10064170]
push 0
push eax
call edi
mov ecx, esi
call fcn.10018330
test eax, eax
jne 0x1003459e
push 0x271e
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100345c2
mov ecx, dword [0x10064170]
push ebx
push ecx
call edi
test eax, eax
jne 0x100345de
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
push esi
mov eax, ebx
call fcn.100182c0
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x1008b958]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret