Function at 0x4bef80
Capabilities:
Terminate process

Disassembly:
mov eax, 0x102c
call fcn.00584ea0
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1024], eax
mov eax, dword [esp + 0x1044]
push ebx
push ebp
mov ebp, dword [esp + 0x1048]
mov ebx, ecx
push esi
movzx esi, word [esp + 0x103c]
push edi
mov edi, dword [ebx + edx*4 + 0x170]
push 0xffffffffffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], esi
push dword [edi + 0x74]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x104c], 0x32
jne 0x4bf23d
mov edx, dword [esp + 0x10]
movzx ecx, si
push ecx
mov dword [esp + 0x30], ecx
mov eax, dword [ebx + edx*4 + 0x170]
mov dword [esp + 0x1c], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [esi + 8]
call eax
mov ecx, dword [esi]
add esp, 4
mov edx, dword [ecx + eax*8]
cmp edx, dword [esp + 0x18]
jne 0x4bf013
mov esi, dword [ecx + eax*8 + 4]
jmp 0x4bf03a
test edx, edx
jns 0x4bf038
mov ecx, dword [ecx + eax*8 + 4]
lea edx, [esp + 0x18]
push edx
mov edx, 0x4b36c0
call fcn.004b2d90
add esp, 4
test eax, eax
je 0x4bf038
mov eax, dword [eax]
mov esi, dword [eax + 4]
jmp 0x4bf03a
xor esi, esi
movsx eax, byte [ebp]
mov dword [esp + 0x14], esi
sub eax, 2
je 0x4bf1b2
sub eax, 1
jne 0x4bf43e
movzx eax, word [ebp + 8]
push eax
mov byte [esp + 0x23], 2
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov byte [eax + ebp + 0xc], 0
test esi, 0x8000
jne 0x4bf43e
mov eax, 0x8000
mov dword [esp + 0x14], 0
mov word [esp + 0x14], ax
movzx eax, byte [ebp + 1]
dec eax
mov dword [esp + 0x18], 0
cmp eax, 0x81
ja case.0x4bf0b1.3
movzx eax, byte [eax + 0x4bf588]
jmp dword [eax*4 + 0x4bf570]
mov eax, 0x80
or word [esp + 0x16], ax
jmp case.0x4bf0b1.3
or word [esp + 0x16], 1
jmp 0x4bf0e5
mov eax, 0x81
jmp 0x4bf0e0
or word [esp + 0x16], 2
jmp 0x4bf0e5
mov eax, 0x82
or word [esp + 0x16], ax
push dword [ebp + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x10]
push dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov ecx, dword [ebx + eax*4 + 0x170]
mov ecx, dword [ecx + 0x78]
call fcn.004b36e0
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + eax*4 + 0x170]
push dword [esp + 0x18]
mov ecx, dword [ecx + 0x7c]
call fcn.004b36e0
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, dword [ebx + esi*4 + 0x170]
push 0
push 1
push dword [eax + 0x74]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call eax
mov ecx, dword [ebx + 0x1a8]
test ecx, ecx
je 0x4bf172
push dword [esp + 0x24]
lea eax, [ebp + 0xc]
mov ebp, dword [esp + 0x24]
push eax
push ebp
push dword [ebx + esi*4 + 0x170]
push ebx
call ecx
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x4bf176
mov ebp, dword [esp + 0x20]
mov ecx, dword [ebx + esi*4 + 0x170]
push 0xffffffffffffffff
push dword [ecx + 0x74]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ecx
cmp dword [esp + 0x28], 0
jne 0x4bf236
push 1
lea eax, [esp + 0x23]
mov edx, esi
push eax
push 0x32
push ebp
mov ecx, ebx
call fcn.004bedd0
add esp, 0x10
mov ebp, esi
jmp 0x4bf442
test esi, 0x4000
je 0x4bf43e
mov eax, dword [esp + 0x10]
xor esi, 0xc000
mov edx, dword [esp + 0x2c]
or esi, 0x8000
mov word [esp + 0x14], si
push dword [esp + 0x14]
mov ecx, dword [ebx + eax*4 + 0x170]
mov ecx, dword [ecx + 0x78]
call fcn.004b36e0
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, dword [ebx + esi*4 + 0x170]
push 0
push 1
push dword [eax + 0x74]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call eax
mov eax, dword [ebx + 0x1b0]
test eax, eax
je 0x4bf222
mov ebp, dword [esp + 0x20]
push ebp
push dword [ebx + esi*4 + 0x170]
push ebx
call eax
add esp, 0xc
mov eax, dword [ebx + esi*4 + 0x170]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x74]
call ecx
mov ebp, esi
jmp 0x4bf442
mov al, byte [esp + 0x1048]
and al, 3
cmp al, 3
jne 0x4bf2d7
cmp dword [ebx + 0x138], 0
je 0x4bf43e
mov eax, dword [esp + 0x10]
mov eax, dword [ebx + eax*4 + 0x170]
cmp dword [eax + 0x70], 2
jne 0x4bf43e
push 0
push 1
push dword [eax + 0x74]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + eax*4 + 0x170]
lea eax, [ecx + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1054]
push ebp
push eax
mov eax, dword [ebx + 0x138]
push esi
push ecx
push ebx
call eax
mov ebp, dword [esp + 0x2c]
add esp, 0x1c
mov eax, dword [ebx + ebp*4 + 0x170]
test eax, eax
je 0x4bf4d3
cmp dword [eax + 0x70], 2
jne 0x4bf4d3
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x74]
call ecx
jmp 0x4bf442
mov edx, dword [esp + 0x10]
movzx eax, si
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + edx*4 + 0x170]
mov edx, eax
mov ecx, dword [ecx + 0x84]
call fcn.004b39c0
mov esi, eax
test esi, esi
jne 0x4bf32c
test byte [esp + 0x1048], 2
je 0x4bf43e
push 0xc
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4bf4ec
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
test byte [esp + 0x1048], 2
je 0x4bf33d
mov dword [esi + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
js 0x4bf43e
mov eax, dword [esp + 0x18]
lea edx, [ecx + eax]
cmp edx, dword [esi + 8]
jle 0x4bf379
push edx
push dword [esi]
call fcn.00591c5f
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4bf52d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 8]
sub edx, ecx
mov ecx, dword [esi]
add ecx, dword [esi + 4]
push eax
push ebp
call fcn.00401000
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add dword [esi + 4], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebx + ebp*4 + 0x170]
push esi
mov ecx, dword [ecx + 0x84]
call fcn.004b36e0
add esp, 0xc
test byte [esp + 0x1048], 1
je 0x4bf442
cmp dword [ebx + 0x138], 0
je 0x4bf435
mov eax, dword [ebx + ebp*4 + 0x170]
cmp dword [eax + 0x70], 2
jne 0x4bf435
push 0
push 1
push dword [eax + 0x74]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call eax
mov ecx, dword [ebx + ebp*4 + 0x170]
mov ebp, dword [esp + 0x20]
lea eax, [ecx + 0x34]
push eax
push dword [esi + 4]
mov eax, dword [esp + 0x1054]
push dword [esi]
push eax
mov eax, dword [ebx + 0x138]
push ebp
push ecx
push ebx
call eax
mov ebp, dword [esp + 0x2c]
add esp, 0x1c
mov eax, dword [ebx + ebp*4 + 0x170]
test eax, eax
je 0x4bf4d3
cmp dword [eax + 0x70], 2
jne 0x4bf4d3
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x74]
call ecx
mov dword [esi + 4], 0xffffffff
jmp 0x4bf442
mov ebp, dword [esp + 0x10]
cmp dword [edi + 0x8c], 0
je 0x4bf4bf
cmp byte [edi + 0x8c], 0xff
jne 0x4bf4bf
movzx eax, word [edi + 0x8e]
mov ecx, dword [edi + 0xec]
mov esi, eax
add ecx, dword [edi + 0xe4]
sub ecx, eax
shr esi, 1
sub esi, 2
mov eax, dword [ecx]
cmp eax, dword [edi + 0x64]
ja 0x4bf4bf
lea eax, [esi*4]
cmp eax, 0x1000
ja 0x4bf4a5
test esi, esi
jle 0x4bf4a2
lea eax, [esi + esi]
mov edx, 0x1000
push eax
lea eax, [ecx + 4]
push eax
lea ecx, [esp + 0x38]
call fcn.00401000
add esp, 8
push esi
jmp 0x4bf4a7
push 0
lea edx, [esp + 0x34]
mov dword [edi + 0x8c], 0
mov ecx, edi
call fcn.004c2460
add esp, 4
mov eax, dword [ebx + ebp*4 + 0x170]
push 0
push 1
push dword [eax + 0x74]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x102c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x1e6
mov edx, 0x61f004
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x1e6
push 0x61f020
push 0x61f03c
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xdda
mov edx, 0x61f5b0
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xdda
push 0x61f5cc
push 0x61f5e8
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
nop
invalid