Function at 0x491f4b
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push 0xc9d
push 0x724670
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.005e7f10
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x492243
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.00487a78
mov dword [esp + 0x20], eax
mov edx, esi
mov eax, dword [edi + ebp*4 + 0x178]
push 0
mov ecx, dword [eax + 0x84]
call fcn.00487a78
mov edi, dword [sym.imp.WS2_32.dll_htons]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1e]
mov edx, ecx
shl edx, 5
and ecx, 0xff80
shr eax, 0x10
or edx, ecx
and eax, 0x1fff
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x10]
or word [eax + 8], dx
lea esi, [eax + 0x1e]
mov al, byte [esp + 0x28]
mov byte [esi], 0
mov byte [esi + 1], al
mov eax, dword [esp + 0x3c]
add eax, 0x10
mov dword [esp + 0x1c], esi
push eax
call edi
push dword [esp + 0x14]
mov word [esi + 2], ax
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ecx, dword [esp + 0x10]
push ebx
mov dword [ecx + 0x22], eax
call edi
mov ecx, dword [esp + 0x10]
push dword [esp + 0x30]
mov word [ecx + 0x26], ax
call edi
mov edi, dword [esp + 0x10]
push dword [esp + 0x34]
mov word [edi + 0x28], ax
call esi
mov esi, dword [esp + 0x3c]
lea ecx, [edi + 0x2e]
push esi
push dword [esp + 0x3c]
mov dword [edi + 0x2a], eax
lea edx, [esi + 0x10]
call section..text
mov ebx, dword [esp + 0x20]
pop ecx
pop ecx
mov eax, dword [ebx + ebp*4 + 0x178]
cmp dword [eax + 0x58], esi
jl 0x4921fd
cmp esi, dword [eax + 0x5c]
jg 0x4921fd
xor edx, edx
cmp word [eax + 0xd0], dx
jne 0x4921fd
mov eax, dword [edi + 0xa]
mov dword [edi + 0xe], eax
mov ecx, dword [ebx + ebp*4 + 0x178]
cmp dword [ecx + 0x11c], edx
jne 0x4920c8
mov dword [ecx + 0x11c], eax
mov eax, dword [ebx + ebp*4 + 0x178]
sub dword [eax + 0x58], esi
mov eax, dword [ebx + ebp*4 + 0x178]
sub dword [eax + 0x5c], esi
mov eax, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [eax + 0xcc]
test ecx, ecx
jne 0x4920f5
mov dword [eax + 0xc8], edi
jmp 0x4920f7
mov dword [ecx], edi
mov eax, dword [ebx + ebp*4 + 0x178]
mov dword [eax + 0xcc], edi
mov eax, dword [ebx + ebp*4 + 0x178]
inc word [eax + 0xc0]
mov ecx, dword [ebx + ebp*4 + 0x178]
movzx eax, word [edi + 4]
sub eax, 0x1c
add dword [ecx + 0xc4], eax
mov al, byte [esp + 0x28]
and al, 3
cmp al, 3
jne 0x4921e8
mov ecx, dword [ebx + ebp*4 + 0x178]
mov edx, dword [ecx + 0xf0]
test edx, edx
jle 0x4921e8
lea eax, [esi + 0x14]
add eax, edx
cmp dword [ecx + 0xf4], eax
jle 0x4921e8
cmp eax, 0x578
jge 0x4921e8
mov ecx, dword [ecx + 0xec]
call fcn.0048f358
mov ecx, dword [ebx + ebp*4 + 0x178]
lea edi, [esi + 0x10]
push edi
push dword [esp + 0x20]
mov edx, edi
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 edi, reloc.WS2_32.dll_closesocket
jns 0x4921b5
dec edi
or edi, 0xfffffffc
inc edi
push 4
pop ecx
sub ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x4921c7
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 0x10
xor eax, eax
add ecx, esi
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 0x49223b
lea eax, [esi + 0x1c]
mov edx, ebp
push eax
lea eax, [edi + 0x12]
mov ecx, ebx
push eax
call fcn.00491ca1
pop ecx
pop ecx
jmp 0x49223b
mov ecx, dword [eax + 0xdc]
test ecx, ecx
jne 0x49220f
mov dword [eax + 0xd8], edi
jmp 0x492211
mov dword [ecx], edi
mov eax, dword [ebx + ebp*4 + 0x178]
mov dword [eax + 0xdc], edi
mov eax, dword [ebx + ebp*4 + 0x178]
inc word [eax + 0xd0]
mov eax, dword [ebx + ebp*4 + 0x178]
add dword [eax + 0xd4], esi
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 0xc9d
mov edx, 0x72468c
xor ecx, ecx
call fcn.00488a50
add esp, 0xc
push 0xfe
call fcn.005c3000
int3