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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1d53
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513b94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x5181b8
call fcn.0042aa90
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [ebp - 0x18], eax
cmp esi, eax
jae 0x46a7ed
mov ecx, dword [0x5195a0]
mov eax, dword fs:[0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x51872c]
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 0x46a648
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 0
cmp edx, 1
je 0x46a7a4
cmp edx, 2
je 0x46a7a4
cmp edx, 4
je 0x46a7a4
cmp edx, 3
jne 0x46a7e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [0x518738]
cmp eax, dword [ecx + 0xc]
jg 0x46a814
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x518298
push esi
push dword [0x518734]
call fcn.0046a2d0
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 [0x51349c]
call ebx
movzx edx, word [esi + 0x28]
mov ecx, dword [esi + 0x2c]
lea ecx, [ecx + edx*4]
add ecx, 0x34
cmp eax, ecx
jne 0x46a7ff
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x46a796
mov ecx, dword [0x518734]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ecx + 0x51c]
push eax
lea eax, [ecx + 0x4b8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0047bcc0
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp + 8], eax
call fcn.004a12e6
mov edi, dword [0x518734]
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp + 0xc], eax
lea edx, [edi + 0x51c]
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.0047bcc0
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp + 8]
push 0
push 4
push eax
push dword [0x51349c]
call ebx
mov edi, dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push edi
push dword [0x51349c]
call ebx
cmp eax, dword [ebp - 0x30]
jne 0x46a7ff
push edi
call fcn.004a0e5f
mov edx, dword [0x51872c]
add esp, 4
mov edi, dword [ebp - 0x14]
jmp 0x46a7e2
mov edx, dword [0x51872c]
mov ebx, dword [sym.imp.WS2_32.dll_send]
jmp 0x46a7e2
push esi
mov ecx, 0x5181b8
call fcn.0042a3b0
mov edx, dword [0x51872c]
cmp edx, 2
jne 0x46a7e2
cmp word [esi + 8], 1
jne 0x46a7e2
movzx eax, word [esi + 0xc]
test ax, ax
je 0x46a7cf
cmp eax, 1
jne 0x46a7e2
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 0x46a623
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 0x4ed030
call fcn.00405010
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x518738
call fcn.004a1210
add esp, 4
cmp dword [0x518738], 0xffffffff
jne 0x46a689
push 0x588
mov dword [ebp - 4], 0
call fcn.004a0e21
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46a856
mov ecx, eax
call fcn.004296c0
jmp 0x46a85a
xor eax, eax
jmp 0x46a85a
push 0x518738
mov dword [0x518734], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004a11c6
add esp, 4
jmp 0x46a689