Function at 0x4bf820
Capabilities:
Terminate process

Disassembly:
mov eax, 0x102c
call fcn.00585720
mov eax, dword [0x6019e4]
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 0x4bfadd
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 0x4bf8b3
mov esi, dword [ecx + eax*8 + 4]
jmp 0x4bf8da
test edx, edx
jns 0x4bf8d8
mov ecx, dword [ecx + eax*8 + 4]
lea edx, [esp + 0x18]
push edx
mov edx, 0x4b3e60
call fcn.004b3530
add esp, 4
test eax, eax
je 0x4bf8d8
mov eax, dword [eax]
mov esi, dword [eax + 4]
jmp 0x4bf8da
xor esi, esi
movsx eax, byte [ebp]
mov dword [esp + 0x14], esi
sub eax, 2
je 0x4bfa52
sub eax, 1
jne 0x4bfcde
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 0x4bfcde
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.0x4bf951.3
movzx eax, byte [eax + 0x4bfe28]
jmp dword [eax*4 + 0x4bfe10]
mov eax, 0x80
or word [esp + 0x16], ax
jmp case.0x4bf951.3
or word [esp + 0x16], 1
jmp 0x4bf985
mov eax, 0x81
jmp 0x4bf980
or word [esp + 0x16], 2
jmp 0x4bf985
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.004b3e80
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.004b3e80
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 0x4bfa12
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 0x4bfa16
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 0x4bfad6
push 1
lea eax, [esp + 0x23]
mov edx, esi
push eax
push 0x32
push ebp
mov ecx, ebx
call fcn.004bf670
add esp, 0x10
mov ebp, esi
jmp 0x4bfce2
test esi, 0x4000
je 0x4bfcde
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.004b3e80
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 0x4bfac2
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 0x4bfce2
mov al, byte [esp + 0x1048]
and al, 3
cmp al, 3
jne 0x4bfb77
cmp dword [ebx + 0x138], 0
je 0x4bfcde
mov eax, dword [esp + 0x10]
mov eax, dword [ebx + eax*4 + 0x170]
cmp dword [eax + 0x70], 2
jne 0x4bfcde
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 0x4bfd73
cmp dword [eax + 0x70], 2
jne 0x4bfd73
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x74]
call ecx
jmp 0x4bfce2
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.004b4160
mov esi, eax
test esi, esi
jne 0x4bfbcc
test byte [esp + 0x1048], 2
je 0x4bfcde
push 0xc
call fcn.0058db11
mov esi, eax
add esp, 4
test esi, esi
je 0x4bfd8c
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
test byte [esp + 0x1048], 2
je 0x4bfbdd
mov dword [esi + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
js 0x4bfcde
mov eax, dword [esp + 0x18]
lea edx, [ecx + eax]
cmp edx, dword [esi + 8]
jle 0x4bfc19
push edx
push dword [esi]
call fcn.0059256f
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4bfdcd
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.004b3e80
add esp, 0xc
test byte [esp + 0x1048], 1
je 0x4bfce2
cmp dword [ebx + 0x138], 0
je 0x4bfcd5
mov eax, dword [ebx + ebp*4 + 0x170]
cmp dword [eax + 0x70], 2
jne 0x4bfcd5
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 0x4bfd73
cmp dword [eax + 0x70], 2
jne 0x4bfd73
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x74]
call ecx
mov dword [esi + 4], 0xffffffff
jmp 0x4bfce2
mov ebp, dword [esp + 0x10]
cmp dword [edi + 0x8c], 0
je 0x4bfd5f
cmp byte [edi + 0x8c], 0xff
jne 0x4bfd5f
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 0x4bfd5f
lea eax, [esi*4]
cmp eax, 0x1000
ja 0x4bfd45
test esi, esi
jle 0x4bfd42
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 0x4bfd47
push 0
lea edx, [esp + 0x34]
mov dword [edi + 0x8c], 0
mov ecx, edi
call fcn.004c2d00
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.005852a8
add esp, 0x102c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x1e6
mov edx, 0x626c7c
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x1e6
push 0x626c98
push 0x626cb4
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xdda
mov edx, 0x627228
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xdda
push 0x627244
push 0x627260
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
nop
stc
dec ebx
add byte [ebx - 7], dh
dec ebx
add byte [eax - 7], bl
dec ebx
add byte [ecx + edi*8 + 0x4b], ch
add byte [ebx - 7], bh
dec ebx
add byte [ebx + 0x4bf9], dl
add dword [0x5050505], eax
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add al, byte [ebx]
add al, 204
int3