Function at 0x4961c9
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push 0xc9e
push 0x742e64
push 1
mov esi, dword [edi + ebp*4 + 0x178]
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x64]
mov dword [esp + 0x20], eax
inc eax
mov dword [esi + 0x64], eax
mov esi, dword [esp + 0x48]
lea eax, [esi + 0x2e]
push eax
call fcn.005ed7c0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4964bd
xor eax, eax
xor ecx, ecx
mov dword [ebx + 6], eax
lea eax, [esi + 0x1c]
mov dword [ebx], ecx
mov word [ebx + 4], ax
mov dword [ebx + 0xe], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebx + 0xa], eax
mov eax, dword [edi + ebp*4 + 0x178]
mov ebx, dword [esp + 0x2c]
movzx esi, bx
push 0
mov ecx, dword [eax + 0x80]
mov edx, esi
call fcn.0048ba70
mov dword [esp + 0x20], eax
mov edx, esi
mov eax, dword [edi + ebp*4 + 0x178]
pop ecx
push 0
mov ecx, dword [eax + 0x84]
call fcn.0048ba70
mov esi, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x1e]
mov edx, ecx
shl edx, 5
and ecx, 0xff80
or edx, ecx
shr eax, 0x10
and eax, 0x1fff
shl edx, 8
or edx, eax
lea ecx, [esi + 0x1e]
mov eax, dword [esp + 0x3c]
or word [esi + 8], dx
add eax, 0x10
push eax
push dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x24], ecx
push 0
call fcn.00495f62
mov edi, dword [sym.imp.WS2_32.dll_htonl]
add esp, 0xc
push dword [esp + 0x14]
call edi
mov dword [esi + 0x22], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ebx
call esi
mov ecx, dword [esp + 0x10]
push dword [esp + 0x30]
mov word [ecx + 0x26], ax
call esi
mov esi, dword [esp + 0x10]
push dword [esp + 0x34]
mov word [esi + 0x28], ax
call edi
mov edi, dword [esp + 0x3c]
lea ecx, [esi + 0x2e]
push edi
push dword [esp + 0x3c]
mov dword [esi + 0x2a], eax
lea edx, [edi + 0x10]
call section..text
mov ebx, dword [esp + 0x20]
pop ecx
pop ecx
mov eax, dword [ebx + ebp*4 + 0x178]
cmp dword [eax + 0x58], edi
jl 0x496477
cmp edi, dword [eax + 0x5c]
jg 0x496477
xor edx, edx
cmp word [eax + 0xd0], dx
jne 0x496477
mov eax, dword [esi + 0xa]
mov dword [esi + 0xe], eax
mov ecx, dword [ebx + ebp*4 + 0x178]
cmp dword [ecx + 0x11c], edx
jne 0x496342
mov dword [ecx + 0x11c], eax
mov eax, dword [ebx + ebp*4 + 0x178]
sub dword [eax + 0x58], edi
mov eax, dword [ebx + ebp*4 + 0x178]
sub dword [eax + 0x5c], edi
mov eax, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [eax + 0xcc]
test ecx, ecx
jne 0x49636f
mov dword [eax + 0xc8], esi
jmp 0x496371
mov dword [ecx], esi
mov eax, dword [ebx + ebp*4 + 0x178]
mov dword [eax + 0xcc], esi
mov eax, dword [ebx + ebp*4 + 0x178]
inc word [eax + 0xc0]
mov ecx, dword [ebx + ebp*4 + 0x178]
movzx eax, word [esi + 4]
sub eax, 0x1c
add dword [ecx + 0xc4], eax
mov eax, dword [esp + 0x28]
and al, 3
cmp al, 3
jne 0x496462
mov ecx, dword [ebx + ebp*4 + 0x178]
mov edx, dword [ecx + 0xf0]
test edx, edx
jle 0x496462
lea eax, [edi + 0x14]
add eax, edx
cmp dword [ecx + 0xf4], eax
jle 0x496462
cmp eax, 0x578
jge 0x496462
mov ecx, dword [ecx + 0xec]
call fcn.0049358b
mov ecx, dword [ebx + ebp*4 + 0x178]
lea esi, [edi + 0x10]
push esi
push dword [esp + 0x20]
mov edx, esi
mov dword [ecx + 0xf0], eax
mov eax, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [eax + 0xf0]
add ecx, dword [eax + 0xec]
call section..text
mov edx, dword [ebx + ebp*4 + 0x178]
pop ecx
pop ecx
and esi, reloc.WS2_32.dll_closesocket
jns 0x49642f
dec esi
or esi, 0xfffffffc
inc esi
push 4
pop ecx
sub ecx, esi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x496441
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 0x10
xor eax, eax
add ecx, edi
add dword [edx + 0xf0], ecx
mov ecx, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [ecx + 0xec]
or dword [ecx + 8], 1
inc eax
jmp 0x4964b5
lea eax, [edi + 0x1c]
mov edx, ebp
push eax
lea eax, [esi + 0x12]
mov ecx, ebx
push eax
call fcn.00495eea
pop ecx
pop ecx
jmp 0x4964b5
mov ecx, dword [eax + 0xdc]
test ecx, ecx
jne 0x496489
mov dword [eax + 0xd8], esi
jmp 0x49648b
mov dword [ecx], esi
mov eax, dword [ebx + ebp*4 + 0x178]
mov dword [eax + 0xdc], esi
mov eax, dword [ebx + ebp*4 + 0x178]
inc word [eax + 0xd0]
mov eax, dword [ebx + ebp*4 + 0x178]
add dword [eax + 0xd4], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xc9e
mov edx, 0x742e80
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push 0xfe
call fcn.005c8390
int3