Function at 0x485a20
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xd4
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xdc]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xf0]
lea esi, [esp + 0x88]
push edi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], esi
mov byte [esp + 0xf], 0
test edi, edi
je 0x4860ba
cmp dword [edi], 0xbab1e
jne 0x4860ba
cmp byte [edi + 0xe3], 0
je 0x485aaa
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004b75b2
add esp, 0xd4
ret
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x38], eax
test eax, eax
jns 0x485ad6
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004b75b2
add esp, 0xd4
ret
push ebx
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x485b40
nop
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.00484280
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x485b0a
mov ecx, dword [esp + edx*4 + 0x7c]
cmp ecx, 0xffffffff
jae 0x485b0a
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x485b1d
cmp dword [esp + edx*4 + 0x7c], 0xffffffff
jae 0x485b1d
inc ebp
jmp 0x485b22
cmp esi, 0xffffffff
je 0x485b2a
inc edx
rol eax, 1
cmp edx, 5
jb 0x485af7
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebp
test ebx, ebx
jne 0x485ae0
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x90]
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00485920
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
js 0x485b63
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xf0]
add eax, ebp
cmp byte [esp + 0x100], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x485bbb
lea eax, [ecx*8]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x485bb6
lea eax, [esi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004b75b2
add esp, 0xd4
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x485cc2
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x485cc2
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.00484280
add esp, 8
mov dword [esp + 0x18], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x485c31
mov eax, dword [esp + esi*4 + 0x7c]
cmp eax, 0xffffffff
jae 0x485c31
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x485c78
mov eax, dword [esp + esi*4 + 0x7c]
cmp eax, 0xffffffff
jae 0x485c78
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
mov edx, 0x10
mov ecx, dword [esp + 0x20]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
jmp 0x485c7d
cmp edi, 0xffffffff
je 0x485ca3
mov eax, dword [esp + 0x30]
push ebx
push dword [eax + 0xdc]
push edi
call dword [esp + 0x38]
test eax, eax
jne 0x485db4
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 5
jb 0x485bf5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x485be1
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp dword [esp + 0xf0], 0
mov dword [esp + 0x34], 0
jbe 0x485dd2
lea eax, [edi + 0xdc]
mov edi, dword [esp + 0x40]
lea esi, [esi + ebx*8]
mov dword [esp + 0x1c], eax
add esi, 4
add edi, 4
nop
movzx edx, word [edi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
test dl, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
lea ecx, [edi - 4]
mov dword [esp + 0x18], ecx
test dl, 4
je 0x485d3f
push 0
push 0
push 0
push dword [ecx]
or eax, 0x32
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x485d43
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
push dword [ecx]
call dword [esp + 0x38]
test eax, eax
jne 0x485db4
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x485d6f
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
movzx ecx, ax
je 0x485d82
or eax, 0x400
mov word [esi], ax
movzx ecx, ax
test byte [edi], 4
je 0x485d8d
or ecx, 0x10
mov word [esi], cx
mov eax, dword [esp + 0x34]
inc ebx
inc eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x34], eax
add edi, 8
cmp eax, dword [esp + 0xf0]
jb 0x485cf0
mov esi, dword [esp + 0x1c]
jmp 0x485ddc
cmp byte [esp + 0x13], 0
je 0x485dc8
push dword [esp + 0x20]
call dword [0x700004]
add esp, 4
mov eax, 4
jmp 0x485b9d
lea esi, [edi + 0xdc]
mov dword [esp + 0x1c], esi
test ebx, ebx
jne 0x485ebc
cmp byte [esp + 0x100], bl
je 0x48602f
xor edi, edi
mov dword [esp + 0x4c], edi
push 0
push dword [esp + 0x40]
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xf0], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x24], ecx
jbe 0x485f7d
mov eax, dword [esp + 0x20]
lea eax, [eax + ebp*8]
add eax, 6
xor ebp, ebp
mov dword [esp + 0x38], eax
movsx ebx, word [eax]
lea edx, [esp + 0x50]
mov eax, dword [esp + 0x40]
xor esi, esi
push edx
push esi
mov dword [esp + 0x20], ebx
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], esi
call ecx
test eax, eax
jne 0x485ef4
mov ecx, dword [esp + 0x50]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x485ef0
test edi, edi
jne 0x485ef0
test ebx, ebx
je 0x485ef0
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x28]
push edi
push dword [eax]
push dword [esp + 0x3c]
call dword [esp + 0x38]
movzx eax, si
jmp 0x485f4f
push 0
push 0
push ebx
push dword [esp + 0x2c]
call fcn.004a2aa0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x4c], edi
test edi, edi
jns 0x485ee1
mov eax, 0xc
jmp 0x485b9d
jle 0x485df7
mov dword [esp + 0x28], edi
jmp 0x485e08
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax]
push dword [esp + 0x3c]
call dword [esp + 0x38]
test edi, edi
jne 0x485f0d
movzx eax, si
jmp 0x485f4f
mov eax, esi
or eax, 1
test ebx, 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [esp + 0x18], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x40]
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x38], eax
cmp ebp, dword [esp + 0xf0]
jb 0x485e30
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x486023
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
test eax, eax
je 0x486023
mov ebp, dword [esp + 0x4c]
nop dword [eax]
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.00484280
add esp, 8
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x486010
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
push 0
push dword [esp + esi*4 + 0x84]
call dword [esp + 0x30]
test eax, eax
jne 0x485ff5
cmp dword [esp + 0x48], eax
je 0x485ff5
test ebp, ebp
jne 0x485ff5
cmp dword [esp + 0x50], ebp
je 0x485ff5
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax]
push dword [esp + esi*4 + 0x84]
call dword [esp + 0x38]
inc esi
rol edi, 1
cmp esi, 5
jb 0x485fb7
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x485fa0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x486043
push dword [esp + 0x20]
call dword [0x700004]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x486051
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xfc], 0
je 0x4860b3
test ebx, ebx
jne 0x4860b3
cmp byte [esp + 0x100], bl
jne 0x4860b3
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
cmp dword [eax], 0xbab1e
jne 0x4860b3
cmp byte [eax + 0xe3], bl
jne 0x4860b3
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00485920
add esp, 8
test eax, eax
jne 0x4860b3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4860b3
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x4860a6
test eax, eax
jns 0x4860a8
mov eax, ecx
cdq
push edx
push eax
call fcn.004a2f60
add esp, 8
xor eax, eax
jmp 0x485b9d
mov ecx, dword [esp + 0xdc]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b75b2
add esp, 0xd4
ret