Function at 0x10053530
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0xc0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.10061140
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x74
push ecx
mov edx, dword [ebp - 4]
add edx, 0xa4
push edx
mov eax, dword [ebp - 4]
add eax, 0x8c
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x5c
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.100a1380
add esp, 0x14
mov edx, dword [ebp - 4]
add edx, 0x5c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
call fcn.10055910
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x54]
push eax
call fcn.1009ff70
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x5c
call fcn.10055690
lea ecx, [ebp - 0x54]
call fcn.10055650
mov eax, dword [ebp - 4]
add eax, 0x8c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10055910
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.1009ff70
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x8c
call fcn.10055690
lea ecx, [ebp - 0x6c]
call fcn.10055650
mov ecx, dword [ebp - 4]
add ecx, 0xa4
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x38], esp
push ecx
mov ecx, edx
call fcn.10055910
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x84]
push eax
call fcn.1009ff70
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0xa4
call fcn.10055690
lea ecx, [ebp - 0x84]
call fcn.10055650
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
call fcn.100523a0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
je 0x100536c8
cmp dword [ebp - 8], 2
je 0x100536ea
cmp dword [ebp - 8], 3
je 0x1005373c
jmp 0x1005378c
push 0xfffffffffffffffe
mov edx, dword [ebp - 4]
push edx
push 0x10052950
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cc70
jmp 0x1005378c
mov ecx, dword [ebp - 4]
call fcn.10051840
test eax, eax
je 0x1005373a
push 0xfffffffffffffffe
push 0
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
push 0x1004fc10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push 0x1004fb00
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
jmp 0x1005378c
mov ecx, dword [ebp - 4]
call fcn.10051e40
test eax, eax
je 0x1005378c
push 0xfffffffffffffffe
push 0
mov edx, dword [ebp - 4]
add edx, 0x10
push edx
push 0x1004fc10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push 0x1004fb00
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1005387a
push 0xfffffffffffffffe
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
push 0x1004f550
mov edx, dword [sym.imp.WS2_32.dll_WSASend]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
push 0x1004f6a0
mov ecx, dword [sym.imp.WS2_32.dll_WSARecv]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov edx, dword [ebp - 4]
add edx, 0x2c
push edx
push 0x1004f7d0
mov eax, dword [sym.imp.WS2_32.dll_send]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x30
push ecx
push 0x1004f8e0
mov edx, dword [sym.imp.WS2_32.dll_recv]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
push 0xfffffffffffffffe
push 0
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
push 0x1004f9f0
mov ecx, dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.1004cd10
mov edx, dword [ebp + 8]
push edx
mov ecx, 0x104e717c
call fcn.100540e0
mov eax, 1
mov esp, ebp
pop ebp
ret 4