Function at 0x10089455
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0xa4
push 0xffffffffffffffff
push 0x100c160c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10125474]
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 0x100894c5
mov di, word [ebp + 0xac]
test di, di
jne 0x100894ec
push 0xf0
push str.C:UsersdimonDesktopSAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetRakPeer.cpp
push str.maxConnections___0
call fcn.100a20b1
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.1009b3f5
add ebp, 0xa4
leave
ret 0x10
cmp dword [esi + 0x828], 0xffffffff
mov eax, dword [ebp + 0xb0]
mov dword [ebp - 0x14], eax
jne 0x1008952d
push ebx
push 1
push eax
mov ecx, 0x1012da98
call fcn.10099a5d
mov dword [esi + 0x828], eax
cmp eax, 0xffffffff
je 0x100894c5
push eax
mov ecx, 0x1012da98
call fcn.10099dac
movzx eax, ax
test ax, ax
je 0x1008952d
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp word [esi + 8], bx
jne 0x1008960d
cmp word [esi + 0xa], di
jbe 0x10089543
mov word [esi + 0xa], di
mov word [esi + 8], di
xor ecx, ecx
movzx edi, di
mov edx, 0x840
mov eax, edi
mov dword [ebp - 0x10], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1009bde4
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x1008959b
push fcn.10091628
push 0x1009154d
push dword [ebp - 0x10]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x840
push edi
call fcn.1009b490
jmp 0x1008959d
mov edi, ebx
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [esi + 0x340], edi
mov dword [ebp - 0x10], ebx
cmp ax, word [esi + 8]
jae 0x10089601
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.100932d0
mov ecx, dword [ebp - 0x10]
add edi, 0x840
movzx eax, word [esi + 8]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jb 0x100895b4
push ebx
lea ecx, [esi + 0x344]
call fcn.100813ce
cmp byte [esi + 4], 0
je 0x100896eb
push 0x400
lea eax, [esi + 0x3e0]
push ebx
push eax
call fcn.1009e0f0
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.1008e513
lea eax, [ebp]
mov ecx, 0x1012da98
push eax
call fcn.10099c7c
mov eax, dword [ebp - 0x14]
mov word [esi + 0x238], ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10089684
cmp byte [eax], 0
jne 0x10089687
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 0x100896eb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push esi
push 0x1008bdd3
push 0x200000
push ebx
call fcn.100b0912
add esp, 0x18
mov dword [esi + 0x378], eax
test eax, eax
jne 0x100896ce
mov eax, dword [esi]
mov ecx, esi
push ebx
push ebx
call dword [eax + 0x24]
jmp 0x100894c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x378], ebx
jmp 0x100896e5
push 0xa
call fcn.10091f13
pop ecx
cmp byte [esi + 5], 0
je 0x100896dd
cmp dword [esi + 0x3c0], ebx
jbe 0x1008970b
mov eax, dword [esi + 0x3bc]
push esi
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
call dword [edx + 8]
inc ebx
cmp ebx, dword [esi + 0x3c0]
jb 0x100896f3
mov al, 1
jmp 0x100894c7