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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xc4], 0
mov eax, 8
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x68]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 0xa5], 0
xor eax, eax
jne 0x474bb1
cmp dword [ebp + 8], 0
je 0x474bc6
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0xbab1e
je 0x474bd0
mov eax, 1
jmp 0x475577
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xe2]
test eax, eax
je 0x474be8
mov eax, 8
jmp 0x475577
cmp dword [ebp + 0x14], 0
jge 0x474bf8
mov eax, 0xa
jmp 0x475577
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
je 0x474d05
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00472f50
add esp, 8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x98], 0
jmp 0x474c45
mov edx, dword [ebp - 0x98]
add edx, 1
mov dword [ebp - 0x98], edx
cmp dword [ebp - 0x98], 5
jae 0x474cf1
mov dword [ebp - 0xd4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x98]
shl eax, cl
and eax, dword [ebp - 0xb8]
je 0x474c9d
mov ecx, dword [ebp - 0x98]
cmp dword [ebp + ecx*4 - 0x18], 0xffffffff
jae 0x474c9d
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp + eax*4 - 0x18]
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0x98]
add ecx, 0x10
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0xb8]
je 0x474ce1
mov eax, dword [ebp - 0x98]
cmp dword [ebp + eax*4 - 0x18], 0xffffffff
jae 0x474ce1
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + edx*4 - 0x18]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x474cec
jmp 0x474cf1
jmp 0x474c36
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xac], edx
jmp 0x474c04
lea eax, [ebp - 0xcc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00474990
add esp, 8
cmp dword [ebp - 0xcc], 0
jl 0x474d35
mov edx, dword [ebp - 0xcc]
cmp edx, dword [ebp + 0x14]
jge 0x474d35
mov eax, dword [ebp - 0xcc]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x9c]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], edx
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x474d67
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 0xa
jbe 0x474da3
mov edx, dword [ebp - 0x9c]
shl edx, 3
push edx
call dword [0x6b5368]
add esp, 4
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x474d9c
mov eax, 3
jmp 0x475577
mov byte [ebp - 0xa5], 1
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0xd8], 0
je 0x474f9f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x474f9f
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xac]
push eax
call fcn.00472f50
add esp, 8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x98], 0
jmp 0x474e07
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 5
jae 0x474f8b
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xc8], 0
mov edx, 1
mov ecx, dword [ebp - 0x98]
shl edx, cl
and edx, dword [ebp - 0xb8]
je 0x474ea3
mov eax, dword [ebp - 0x98]
cmp dword [ebp + eax*4 - 0x18], 0xffffffff
jae 0x474ea3
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + ecx*4 - 0x18]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xc8]
or eax, 0x29
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xb4]
mov dword [edx + ecx*8], eax
mov ecx, 0x300
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa4]
mov word [eax + edx*8 + 4], cx
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0x98]
add ecx, 0x10
mov edx, 1
shl edx, cl
and edx, dword [ebp - 0xb8]
je 0x474f34
mov eax, dword [ebp - 0x98]
cmp dword [ebp + eax*4 - 0x18], 0xffffffff
jae 0x474f34
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + ecx*4 - 0x18]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xc8]
or eax, 0x32
mov dword [ebp - 0xc8], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xb4]
mov dword [eax + edx*8], ecx
mov edx, 0x10
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
mov word [ecx + eax*8 + 4], dx
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
cmp dword [ebp - 0xb4], 0xffffffff
jne 0x474f3f
jmp 0x474f8b
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xdc]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x474f86
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x474f7c
mov edx, dword [ebp - 0xa4]
push edx
call dword [0x6b536c]
add esp, 4
mov eax, 4
jmp 0x475577
jmp 0x474df8
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xac], ecx
jmp 0x474dc6
mov dword [ebp - 0x98], 0
jmp 0x474fba
mov edx, dword [ebp - 0x98]
add edx, 1
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp + 0x10]
jae 0x47518f
mov dword [ebp - 0xc0], 0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
movsx eax, word [edx + ecx*8 + 4]
and eax, 1
je 0x474ff5
mov ecx, dword [ebp - 0xc0]
or ecx, 0x29
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + edx*8 + 4]
and ecx, 2
je 0x475017
mov edx, dword [ebp - 0xc0]
or edx, 4
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + eax*8 + 4]
and edx, 4
je 0x475052
mov eax, dword [ebp - 0xc0]
or eax, 0x32
mov dword [ebp - 0xc0], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xdc]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*8]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x47509f
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x475095
mov edx, dword [ebp - 0xa4]
push edx
call dword [0x6b536c]
add esp, 4
mov eax, 4
jmp 0x475577
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x98]
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + edx*8]
mov dword [ecx + eax*8], edx
xor eax, eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
mov word [edx + ecx*8 + 4], ax
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + eax*8 + 4]
and edx, 1
je 0x475108
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
movsx edx, word [ecx + eax*8 + 4]
or edx, 0x300
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
mov word [ecx + eax*8 + 4], dx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + edx*8 + 4]
and ecx, 2
je 0x475143
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa4]
movsx ecx, word [eax + edx*8 + 4]
or ecx, 0x400
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa4]
mov word [eax + edx*8 + 4], cx
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
movsx eax, word [edx + ecx*8 + 4]
and eax, 4
je 0x47517b
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
movsx eax, word [edx + ecx*8 + 4]
or eax, 0x10
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa4]
mov word [edx + ecx*8 + 4], ax
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x9c], eax
jmp 0x474fab
cmp dword [ebp - 0x9c], 0
jne 0x4751a4
movzx ecx, byte [ebp + 0x20]
test ecx, ecx
je 0x4754cd
cmp dword [ebp - 0x9c], 0
je 0x4751cf
push 0
push 0
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call fcn.0049f700
add esp, 0x10
mov dword [ebp - 0xb0], eax
jmp 0x4751d9
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0
jg 0x4751fc
push 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0xdc
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [ebp - 0xb0], 0
jle 0x475211
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x98], 0
jmp 0x47522c
mov ecx, dword [ebp - 0x98]
add ecx, 1
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
cmp edx, dword [ebp + 0x10]
jae 0x4753a6
mov eax, dword [ebp - 0xd8]
add eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa4]
movsx edx, word [ecx + eax*8 + 6]
mov dword [ebp - 0xd0], edx
xor eax, eax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x94]
push ecx
push 0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x475306
mov edx, dword [ebp - 0x94]
and edx, 0x29
je 0x4752a7
movzx eax, word [ebp - 0xa0]
or eax, 1
mov word [ebp - 0xa0], ax
mov ecx, dword [ebp - 0x94]
and ecx, 0x32
je 0x4752c3
movzx edx, word [ebp - 0xa0]
or edx, 4
mov word [ebp - 0xa0], dx
mov eax, dword [ebp - 0x94]
and eax, 4
je 0x4752df
movzx ecx, word [ebp - 0xa0]
or ecx, 2
mov word [ebp - 0xa0], cx
cmp dword [ebp + 0x18], 0
je 0x475306
cmp dword [ebp - 0xb0], 0
jg 0x475306
cmp dword [ebp - 0x94], 0
je 0x475306
mov edx, dword [ebp - 0xc4]
add edx, 1
mov dword [ebp - 0xc4], edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xdc]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [ebp - 0xb0], 0
jg 0x475333
jmp 0x47521d
mov edx, dword [ebp - 0xd0]
and edx, 0x300
je 0x475352
movzx eax, word [ebp - 0xa0]
or eax, 1
mov word [ebp - 0xa0], ax
mov ecx, dword [ebp - 0xd0]
and ecx, 0x10
je 0x47536e
movzx edx, word [ebp - 0xa0]
or edx, 4
mov word [ebp - 0xa0], dx
mov eax, dword [ebp - 0xd0]
and eax, 0x400
je 0x47538c
movzx ecx, word [ebp - 0xa0]
or ecx, 2
mov word [ebp - 0xa0], cx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 0xa0]
mov word [eax + edx*8 + 6], cx
jmp 0x47521d
cmp dword [ebp - 0xd8], 0
je 0x4754bd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x4754bd
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call fcn.00472f50
add esp, 8
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x98], 0
jmp 0x475400
mov eax, dword [ebp - 0x98]
add eax, 1
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 5
jae 0x4754a9
mov edx, 1
mov ecx, dword [ebp - 0x98]
shl edx, cl
mov ecx, dword [ebp - 0x98]
add ecx, 0x10
mov eax, 1
shl eax, cl
or edx, eax
and edx, dword [ebp - 0xb8]
je 0x4754a2
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x94]
push ecx
push 0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp + edx*4 - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x475483
cmp dword [ebp + 0x18], 0
je 0x475483
cmp dword [ebp - 0xb0], 0
jg 0x475483
cmp dword [ebp - 0x94], 0
je 0x475483
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xdc]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + ecx*4 - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x4754a4
jmp 0x4754a9
jmp 0x4753f1
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xac], ecx
jmp 0x4753bf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xdc]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
movzx ecx, byte [ebp - 0xa5]
test ecx, ecx
je 0x4754e8
mov edx, dword [ebp - 0xa4]
push edx
call dword [0x6b536c]
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x4754f9
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc4]
mov dword [eax], ecx
movzx edx, byte [ebp + 0x1c]
test edx, edx
je 0x475575
cmp dword [ebp - 0x9c], 0
jne 0x475575
movzx eax, byte [ebp + 0x20]
test eax, eax
jne 0x475575
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004726e0
add esp, 8
test eax, eax
jne 0x475575
cmp dword [ebp - 0xbc], 0
je 0x475575
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp + 0x14]
jle 0x475552
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xbc], ecx
jmp 0x475564
cmp dword [ebp - 0xbc], 0
jge 0x475564
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
cdq
push edx
push eax
call fcn.0049fea0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret