Function at 0x46cfe0
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5993
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x51c200
call fcn.0042bd40
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x46d20d
mov ecx, dword [0x51d5f8]
mov eax, dword fs:[0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x51c784]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
movzx edi, word [esi + 0x28]
mov eax, dword [esi + 0x2c]
add edi, 0xd
cmp word [esi + 8], 1
lea edi, [eax + edi*4]
mov dword [ebp - 0x14], edi
jne 0x46d068
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 0
cmp edx, 1
je 0x46d1c4
cmp edx, 2
je 0x46d1c4
cmp edx, 4
je 0x46d1c4
cmp edx, 3
jne 0x46d202
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [0x51c790]
cmp eax, dword [ecx + 0xc]
jg 0x46d234
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x51c2e0
push esi
push dword [0x51c78c]
call fcn.0046ccf0
movzx ecx, word [esi + 0x28]
add esp, 0x10
mov eax, dword [esi + 0x2c]
push 0
lea eax, [eax + ecx*4]
add eax, 0x34
push eax
push esi
push dword [0x5174a4]
call ebx
movzx edx, word [esi + 0x28]
mov ecx, dword [esi + 0x2c]
lea ecx, [ecx + edx*4]
add ecx, 0x34
cmp eax, ecx
jne 0x46d21f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x46d1b6
mov ecx, dword [0x51c78c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ecx + 0x524]
push eax
lea eax, [ecx + 0x4b8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047ea10
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp + 8], eax
call fcn.004a4906
mov edi, dword [0x51c78c]
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp + 0xc], eax
lea edx, [edi + 0x524]
mov dword [ebp - 0x34], eax
push edx
lea edx, [edi + 0x4b8]
mov dword [ebp - 0x30], 0
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.0047ea10
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp + 8]
push 0
push 4
push eax
push dword [0x5174a4]
call ebx
mov edi, dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push edi
push dword [0x5174a4]
call ebx
cmp eax, dword [ebp - 0x30]
jne 0x46d21f
push edi
call fcn.004a447f
mov edx, dword [0x51c784]
add esp, 4
mov edi, dword [ebp - 0x14]
jmp 0x46d202
mov edx, dword [0x51c784]
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x46d202
push esi
mov ecx, 0x51c200
call fcn.0042b660
mov edx, dword [0x51c784]
cmp edx, 2
jne 0x46d202
cmp word [esi + 8], 1
jne 0x46d202
movzx eax, word [esi + 0xc]
test ax, ax
je 0x46d1ef
cmp eax, 1
jne 0x46d202
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 0x2c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi + 0x34]
add esi, 4
add esi, eax
add esi, edi
cmp esi, dword [ebp - 0x18]
jb 0x46d043
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4f1018
call fcn.00405a70
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x51c790
call fcn.004a4830
add esp, 4
cmp dword [0x51c790], 0xffffffff
jne 0x46d0a9
push 0x590
mov dword [ebp - 4], 0
call fcn.004a4441
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46d276
mov ecx, eax
call fcn.0042a970
jmp 0x46d27a
xor eax, eax
jmp 0x46d27a
push 0x51c790
mov dword [0x51c78c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004a47e6
add esp, 4
jmp 0x46d0a9