Function at 0x100885ac
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0xa4
push 0xffffffffffffffff
push 0x100c0c00
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10124480]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 0xb8]
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x28]
test al, al
jne 0x1008861c
mov di, word [ebp + 0xac]
test di, di
jne 0x10088643
push 0xf0
push str.E:SAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetRakPeer.cpp
push str.maxConnections___0
call fcn.100a16e1
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa0]
xor ecx, ebp
call fcn.1009a659
add ebp, 0xa4
leave
ret 0x10
mov eax, dword [ebp + 0xb0]
or ecx, 0xffffffff
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x828], ecx
jne 0x1008868b
push ebx
push 1
push eax
mov ecx, 0x1012caf8
call fcn.10098c92
or ecx, 0xffffffff
mov dword [esi + 0x828], eax
cmp eax, ecx
je 0x1008861c
push eax
mov ecx, 0x1012caf8
call fcn.10098fe1
movzx eax, ax
or ecx, 0xffffffff
test ax, ax
je 0x1008868b
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp word [esi + 8], bx
jne 0x10088761
cmp word [esi + 0xa], di
jbe 0x100886a1
mov word [esi + 0xa], di
mov word [esi + 8], di
mov edx, 0x840
movzx edi, di
mov eax, edi
mov dword [ebp - 0x10], edi
mul edx
cmovb eax, ecx
add eax, 4
cmovb eax, ecx
push eax
call fcn.1009b294
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100886ed
push fcn.1009079a
push 0x100906bf
push dword [ebp - 0x10]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x840
push edi
call fcn.1009a6f0
jmp 0x100886ef
mov edi, ebx
or ecx, 0xffffffff
mov dword [esi + 0x340], edi
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ebx
cmp ax, word [esi + 8]
jae 0x10088755
mov edi, ebx
mov eax, dword [esi + 0x340]
mov byte [edi + eax], bl
movzx eax, word [esi + 0x84a]
movsd xmm0, qword [esi + 0x840]
push eax
movzx eax, word [esi + 0x848]
push eax
push ecx
push ecx
mov ecx, dword [esi + 0x340]
add ecx, 0x18
movsd qword [esp], xmm0
add ecx, edi
call fcn.10092480
mov ecx, dword [ebp - 0x10]
add edi, 0x840
movzx eax, word [esi + 8]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jb 0x10088708
push ebx
lea ecx, [esi + 0x344]
call fcn.100804cc
cmp byte [esi + 4], 0
je 0x1008883f
push 0x400
lea eax, [esi + 0x3e0]
push ebx
push eax
call fcn.1009d710
mov eax, dword [ebp + 0xb4]
add esp, 0xc
mov dword [esi + 0x7f4], ebx
mov ecx, esi
mov dword [esi + 0x7f0], ebx
mov dword [esi + 0x7ec], ebx
mov dword [esi + 0x7e8], ebx
mov byte [esi + 0x368], bl
mov byte [esi + 4], bl
mov dword [esi + 0x824], eax
call fcn.1008d764
lea eax, [ebp]
mov ecx, 0x1012caf8
push eax
call fcn.10098eb1
mov eax, dword [ebp - 0x14]
mov word [esi + 0x238], ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100887d8
cmp byte [eax], 0
jne 0x100887db
lea eax, [ebp]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x234], eax
cmp byte [esi + 5], 0
jne 0x1008883f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push esi
push 0x1008afe2
push 0x200000
push ebx
call fcn.100aff42
add esp, 0x18
mov dword [esi + 0x378], eax
test eax, eax
jne 0x10088822
mov eax, dword [esi]
mov ecx, esi
push ebx
push ebx
call dword [eax + 0x24]
jmp 0x1008861c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x378], ebx
jmp 0x10088839
push 0xa
call fcn.1009107f
pop ecx
cmp byte [esi + 5], 0
je 0x10088831
cmp dword [esi + 0x3c0], ebx
jbe 0x10088864
mov edi, ebx
mov eax, dword [esi + 0x3bc]
push esi
mov ecx, dword [edi + eax]
mov edx, dword [ecx]
call dword [edx + 8]
inc ebx
lea edi, [edi + 4]
cmp ebx, dword [esi + 0x3c0]
jb 0x10088849
mov al, 1
jmp 0x1008861e