Function at 0x1005ad40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101115ed
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
mov esi, 0xffffffff
cmp byte [edi + 0x100fc], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x10163ad8
jne 0x1005b0c1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [edi + 0x10100], eax
mov eax, dword [ebp + 0x10]
mov byte [edi + 0x100fc], 1
mov dword [edi + 0x10104], eax
test edx, edx
je 0x1005adc0
lock inc dword [edx + 4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [edi + 0x1010c]
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10108], eax
mov dword [ebp - 0x34], ecx
mov dword [edi + 0x1010c], edx
test ecx, ecx
je 0x1005adfa
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1005adfa
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005adfa
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0x1c]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
mov byte [edi + 0x10110], al
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x30], 2
push ecx
lea ecx, [edi + 0x10010]
call fcn.1005ba30
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov edx, 2
movlpd qword [ebp - 0x24], xmm0
push 0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x2a], ax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push eax
call esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], eax
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
push ecx
lea eax, [edi + 0x10014]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1005a2e0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 2
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [edi + 0x10070]
call fcn.1005ba30
push 0x7f000001
call esi
mov esi, eax
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x24], xmm0
push 0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x2a], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], eax
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
push ecx
lea eax, [edi + 0x10074]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.1005a2e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x10070]
call fcn.1005b6a0
push eax
lea ecx, [edi + 0x10010]
call fcn.1005b7c0
mov eax, dword [edi + 0x1000c]
xor ecx, ecx
add eax, 0x1c
xchg dword [eax], ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0x201c8]
mov dword [esi + 0x138], eax
lea eax, [edi + 0x10004]
mov dword [ebp - 0x30], esi
or edi, 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0x28
push dword [esi + 0x138]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.10061ac0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x4c], 0
je 0x1005af94
mov ecx, esi
call fcn.10061ec0
test eax, eax
je 0x1005af94
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.10062320
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1005afbe
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005afbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1005afbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub dword [ebp - 0x34], 1
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
jne 0x1005af61
mov edi, dword [ebp - 0x38]
cmp byte [edi + 0x10110], 0
je 0x1005b015
sub esp, 8
lea ecx, [edi + 0x10118]
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [edi + 0x1010c]
test eax, eax
je 0x1005affc
lock inc dword [eax + 4]
mov eax, dword [edi + 0x10108]
push dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [edi + 0x1010c]
mov dword [edx + 4], eax
call fcn.10059e30
sub esp, 0x1c
lea ecx, [edi + 0x10010]
push esp
call fcn.1005b6a0
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.1005b430
lea eax, [edi + 0x10004]
mov dword [ebp - 0x70], eax
sub esp, 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x44], 0
mov dword [ecx], eax
lea ecx, [ebp - 0x74]
call fcn.10031170
mov byte [ebp - 4], 0
add esp, 8
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1005b06e
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
push 8
call fcn.100b887b
mov dword [ebp - 0x30], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1005b410
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
push ecx
push 0
push eax
push 0x1005c160
push 0
push 0
call fcn.100cba9a
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1005b103
cmp dword [edi + 0x100d4], 0
jne 0x1005b111
mov eax, dword [ebp - 0x50]
or esi, 0xffffffff
mov dword [edi + 0x100d0], ecx
mov dword [edi + 0x100d4], eax
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1005b0e6
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1005b0e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1005b0e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 0x18
push 6
mov dword [ebp - 0x50], 0
call fcn.100b6fbf
call fcn.100cbb2d
int3