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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0x95], bl
push edi
lea edi, [ebp - 0x68]
mov dword [ebp - 0xac], edi
test esi, esi
je 0x4845e7
cmp dword [esi], 0xbab1e
jne 0x4845e7
cmp byte [esi + 0xfb], bl
je 0x483eee
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], ebx
jge 0x483f09
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x483f87
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00482970
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x483f43
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x483f43
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x483f58
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x483f58
inc ebx
mov esi, ecx
cmp esi, 0xffffffff
je 0x483f65
inc edx
rol eax, 1
cmp edx, 5
jb 0x483f30
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x483f16
mov esi, dword [ebp - 0xb0]
lea edi, [ebp - 0x68]
lea eax, [ebp - 0x9c]
push eax
push esi
call fcn.00483d60
mov eax, dword [ebp - 0x9c]
add esp, 8
test eax, eax
js 0x483fac
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x483ff8
lea eax, [ecx*8]
push eax
call dword [0x57a348]
mov edi, eax
add esp, 4
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x483ff1
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
xor edx, edx
mov dword [ebp - 0xa8], edx
test ebx, ebx
je 0x484151
mov eax, dword [esi + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x484151
nop dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00482970
add esp, 8
mov dword [ebp - 0x9c], eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
mov edx, dword [ebp - 0xa8]
je 0x484077
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x484077
mov esi, eax
mov ecx, 0x300
mov eax, dword [ebp - 0xac]
mov ebx, 0x29
mov dword [eax + edx*8], esi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa8], edx
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0x9c], eax
je 0x4840f7
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x4840f7
mov esi, eax
mov dword [ebp - 0xc0], 4
lea eax, [ebp - 0xc0]
or ebx, 0x32
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4840d7
cmp dword [ebp - 0xc4], 1
jne 0x4840d7
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0xa8]
mov ecx, 0x10
mov eax, dword [ebp - 0xac]
mov dword [eax + edx*8], esi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa8], edx
cmp esi, 0xffffffff
je 0x48412e
mov eax, dword [ebp - 0xb0]
push ebx
push dword [eax + 0xf4]
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x484367
mov eax, dword [ebp - 0x9c]
inc edi
cmp edi, 5
jb 0x484035
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x484020
mov ebx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xac]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xa0], 0
jbe 0x484263
lea esi, [edi + 4]
mov edi, dword [ebp - 0xa4]
lea esi, [esi + edx*8]
add edi, 4
movzx ecx, word [edi]
xor eax, eax
test cl, 1
mov edx, 0x29
cmovne eax, edx
test cl, 2
je 0x48418c
or eax, 4
test cl, 4
je 0x4841ee
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 4
push ecx
lea ecx, [ebp - 0xc0]
or eax, 0x32
push ecx
push 0x1008
mov dword [ebp - 0x9c], eax
mov eax, dword [edi - 4]
push 0xffff
push eax
mov dword [ebp - 0xc8], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4841e8
cmp dword [ebp - 0xc0], 1
jne 0x4841e8
push eax
push eax
push eax
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xf4]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x484367
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x484224
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x484231
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x48423a
or word [esi], 0x10
mov eax, dword [ebp - 0xa0]
add esi, 8
mov edx, dword [ebp - 0xa8]
inc eax
inc edx
mov dword [ebp - 0xa0], eax
add edi, 8
mov dword [ebp - 0xa8], edx
cmp eax, dword [ebp + 0x10]
jb 0x484174
test edx, edx
jne 0x484395
cmp byte [ebp + 0x20], dl
je 0x48453b
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xb0]
push 0
push dword [ebp + 0x14]
add eax, 0xf4
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [ebp + 0x10], 0
jbe 0x48446d
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xa4]
add edi, 6
lea eax, [eax + ebx*8]
add eax, 6
mov dword [ebp - 0xa4], eax
nop word [eax + eax]
movsx ebx, word [eax]
lea ecx, [ebp - 0x94]
mov eax, dword [edi - 6]
xor esi, esi
push ecx
push esi
push eax
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x94], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4843e1
mov ecx, dword [ebp - 0x94]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [ebp - 0x94]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xbc], 0
movzx eax, cx
mov esi, eax
je 0x4843db
cmp dword [ebp - 0x9c], 0
jne 0x4843db
cmp dword [ebp - 0x94], 0
mov ebx, dword [ebp - 0xa0]
je 0x4843e1
inc dword [ebp - 0xb4]
jmp 0x4843e1
cmp byte [ebp - 0x95], 0
je 0x48437f
push dword [ebp - 0xac]
call dword [0x57a34c]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
push 0
push 0
push edx
push dword [ebp - 0xac]
call fcn.004a1b20
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x9c], esi
test esi, esi
jns 0x4843ca
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
jle 0x48427a
mov dword [ebp - 0xb4], esi
jmp 0x484295
mov ebx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xf4]
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [ebp - 0x9c], 0
jne 0x484409
mov word [edi], si
jmp 0x484451
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [ebp - 0xa0]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov word [edi], cx
mov eax, dword [ebp - 0xa4]
add edi, 8
add eax, 8
sub dword [ebp + 0x10], 1
mov dword [ebp - 0xa4], eax
jne 0x4842c0
cmp dword [ebp - 0xb8], 0
je 0x484529
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x484529
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00482970
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 0x484512
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x4844f2
cmp dword [ebp - 0xbc], eax
je 0x4844f2
cmp dword [ebp - 0x9c], eax
jne 0x4844f2
cmp dword [ebp - 0x94], eax
je 0x4844f2
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xf4]
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x4844a7
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x484491
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xf4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x484553
push dword [ebp - 0xac]
call dword [0x57a34c]
add esp, 4
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x484565
mov eax, dword [ebp - 0xb4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x4845d4
cmp dword [ebp - 0xa8], 0
jne 0x4845d4
cmp byte [ebp + 0x20], 0
jne 0x4845d4
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xa4], 0
cmp dword [eax], 0xbab1e
jne 0x4845d4
cmp byte [eax + 0xfb], 0
jne 0x4845d4
lea ecx, [ebp - 0xa4]
push ecx
push eax
call fcn.00483d60
add esp, 8
test eax, eax
jne 0x4845d4
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4845d4
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x4845c7
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.004a1f50
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e36f8
mov esp, ebp
pop ebp
ret