Function at 0x47a027
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push 0xc9a
push 0x7648a4
push 1
mov esi, dword [edi + ebp*4 + 0x174]
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], eax
inc eax
mov dword [esi + 0x60], eax
mov esi, dword [esp + 0x48]
lea eax, [esi + 0x2e]
push eax
call fcn.005ce020
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x47a31e
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 fcn.00470e8d
mov dword [ebx + 0xa], eax
mov eax, dword [edi + ebp*4 + 0x174]
mov ebx, dword [esp + 0x2c]
movzx esi, bx
push 0
mov ecx, dword [eax + 0x80]
mov edx, esi
call fcn.00470754
mov dword [esp + 0x20], eax
mov edx, esi
mov eax, dword [edi + ebp*4 + 0x174]
push 0
mov ecx, dword [eax + 0x84]
call fcn.00470754
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 + 0x174]
cmp dword [eax + 0x54], esi
jl 0x47a2d8
cmp esi, dword [eax + 0x58]
jg 0x47a2d8
xor edx, edx
cmp word [eax + 0xd0], dx
jne 0x47a2d8
mov eax, dword [edi + 0xa]
mov dword [edi + 0xe], eax
mov ecx, dword [ebx + ebp*4 + 0x174]
cmp dword [ecx + 0x11c], edx
jne 0x47a1a3
mov dword [ecx + 0x11c], eax
mov eax, dword [ebx + ebp*4 + 0x174]
sub dword [eax + 0x54], esi
mov eax, dword [ebx + ebp*4 + 0x174]
sub dword [eax + 0x58], esi
mov eax, dword [ebx + ebp*4 + 0x174]
mov ecx, dword [eax + 0xcc]
test ecx, ecx
jne 0x47a1d0
mov dword [eax + 0xc8], edi
jmp 0x47a1d2
mov dword [ecx], edi
mov eax, dword [ebx + ebp*4 + 0x174]
mov dword [eax + 0xcc], edi
mov eax, dword [ebx + ebp*4 + 0x174]
inc word [eax + 0xc0]
mov ecx, dword [ebx + ebp*4 + 0x174]
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 0x47a2c3
mov ecx, dword [ebx + ebp*4 + 0x174]
mov edx, dword [ecx + 0xf0]
test edx, edx
jle 0x47a2c3
lea eax, [esi + 0x14]
add eax, edx
cmp dword [ecx + 0xf4], eax
jle 0x47a2c3
cmp eax, 0x578
jge 0x47a2c3
mov ecx, dword [ecx + 0xec]
call fcn.004774d7
mov ecx, dword [ebx + ebp*4 + 0x174]
lea edi, [esi + 0x10]
push edi
push dword [esp + 0x20]
mov edx, edi
mov dword [ecx + 0xf0], eax
mov eax, dword [ebx + ebp*4 + 0x174]
mov ecx, dword [eax + 0xf0]
add ecx, dword [eax + 0xec]
call section..text
mov edx, dword [ebx + ebp*4 + 0x174]
pop ecx
pop ecx
and edi, reloc.WS2_32.dll_closesocket
jns 0x47a290
dec edi
or edi, 0xfffffffc
inc edi
push 4
pop ecx
sub ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x47a2a2
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 + 0x174]
mov ecx, dword [ecx + 0xec]
or dword [ecx + 8], 1
inc eax
jmp 0x47a316
lea eax, [esi + 0x1c]
mov edx, ebp
push eax
lea eax, [edi + 0x12]
mov ecx, ebx
push eax
call fcn.00479dc5
pop ecx
pop ecx
jmp 0x47a316
mov ecx, dword [eax + 0xdc]
test ecx, ecx
jne 0x47a2ea
mov dword [eax + 0xd8], edi
jmp 0x47a2ec
mov dword [ecx], edi
mov eax, dword [ebx + ebp*4 + 0x174]
mov dword [eax + 0xdc], edi
mov eax, dword [ebx + ebp*4 + 0x174]
inc word [eax + 0xd0]
mov eax, dword [ebx + ebp*4 + 0x174]
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 0xc9a
mov edx, 0x7648c0
xor ecx, ecx
call fcn.0047145c
add esp, 0xc
push 0xfe
call fcn.005aae60
int3