Function at 0x4ffc40
Capabilities:
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push dword [0x884c50]
mov esi, ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x4ffc7c
mov dword [edi], str.TtSimpleTOI
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x30]
mov edi, dword [esp + 0x4c]
movss xmm0, dword [esp + 0x54]
push edx
inc dword [eax + 0x94]
lea eax, [esp + 0x40]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], reloc.WSOCK32.dll_bind
mov eax, dword [ecx]
push ecx
movss dword [esp], xmm0
push edi
call dword [eax + 0x48]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
lea ebp, [edi + 0xc]
mov eax, 2
mov dword [esp + 0x24], reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov ebx, dword [ebp]
mov dword [esp + 0x54], ebx
cmp byte [ebx + 0x2a], 3
jne 0x4ffdc4
movss xmm0, dword [edi]
lea eax, [ebx + 0xf0]
push eax
push ecx
movss dword [esp], xmm0
call fcn.00650b80
mov eax, dword [esp + 0x50]
push dword [eax + 0x78]
push ebx
call fcn.0052dc50
mov edi, dword [esi + 0x34]
add esp, 0x10
sub edi, 1
js 0x4ffdad
imul ebp, edi, 0x70
nop dword [eax]
mov esi, dword [esi + 0x30]
add esi, ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4ffd41
cmp dword [esi + 0x10], ebx
jne 0x4ffd9d
cmp byte [eax + 0xe8], 5
jne 0x4ffd4d
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov ebx, dword [eax + 0xcc]
lea eax, [esi + 0x18]
push eax
push ebx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov esi, dword [esp + 0x10]
dec dword [esi + 0x34]
mov ecx, dword [esi + 0x34]
cmp ecx, edi
je 0x4ffef8
mov eax, dword [esi + 0x30]
mov esi, 0xe
imul edx, ecx, 0x70
lea ecx, [eax + ebp]
add edx, eax
sub edx, ecx
mov eax, dword [edx + ecx]
lea ecx, [ecx + 8]
mov dword [ecx - 8], eax
mov eax, dword [edx + ecx - 4]
mov dword [ecx - 4], eax
sub esi, 1
jne 0x4ffd84
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
sub ebp, 0x70
sub edi, 1
jns 0x4ffd30
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
mov dword [ecx + eax*4], ebx
inc dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add ebp, 4
sub eax, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4ffce3
mov eax, dword [edi + 0xc]
cmp byte [eax + 0xe8], 5
jne 0x4ffde7
mov eax, dword [edi + 0x10]
mov edi, dword [eax + 0xcc]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
add eax, 0x18
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ffe1d
mov edx, dword [esi]
lea eax, [esi + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
push dword [eax + 0x78]
push ecx
push dword [esp + 0x28]
mov ecx, esi
call dword [edx + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0
test eax, eax
js 0x4ffe47
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x20]
call dword [eax + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], connect
mov dword [esp + 0x34], 0
test eax, eax
js 0x4ffe81
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x34]
call dword [eax + 0x10]
mov esi, dword [esi + 0xc]
add dword [esi + 0x94], 0xffffffff
jne 0x4ffebf
cmp byte [esi + 0x9c], 0
jne 0x4ffebf
cmp dword [esi + 0x8c], 0
je 0x4ffea6
mov ecx, esi
call fcn.00510540
cmp dword [esi + 0xa4], 1
jne 0x4ffebf
cmp dword [esi + 0x90], 0
je 0x4ffebf
mov ecx, esi
call fcn.00510560
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x4ffeee
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
mov ebx, dword [esp + 0x54]
jmp 0x4ffda1