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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x4fe040]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd4]
push ebx
mov ebx, dword [esp + 0xd4]
push esi
push edi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xec]
lea esi, [esp + 0x84]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0xf], 0
test ebx, ebx
je 0x447810
cmp dword [ebx], 0xbab1e
jne 0x447810
cmp byte [ebx + 0xe2], 0
je 0x4471ea
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0043e7f2
add esp, 0xcc
ret
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x38], eax
test eax, eax
jns 0x447216
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0043e7f2
add esp, 0xcc
ret
push ebp
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x447280
nop
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.004458c0
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x44724a
mov ecx, dword [esp + edx*4 + 0x74]
cmp ecx, 0xffffffff
jae 0x44724a
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x44725d
cmp dword [esp + edx*4 + 0x74], 0xffffffff
jae 0x44725d
inc edi
jmp 0x447262
cmp esi, 0xffffffff
je 0x44726a
inc edx
rol eax, 1
cmp edx, 5
jb 0x447237
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x447220
mov ebx, dword [esp + 0x14]
lea esi, [esp + 0x88]
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00447060
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
js 0x4472a3
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xe8]
add eax, edi
cmp byte [esp + 0xf8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4472fb
lea eax, [ecx*8]
push eax
call dword [0x4fe098]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4472f6
lea eax, [esi + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0043e7f2
add esp, 0xcc
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebp, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], eax
test edi, edi
je 0x4473f6
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4473f6
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.004458c0
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 0x44736d
mov eax, dword [esp + esi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x44736d
mov edi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x1c]
mov ebx, 0x29
mov dword [eax + ebp*8], edi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x38], ebp
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x18], eax
je 0x4473b0
mov eax, dword [esp + esi*4 + 0x74]
cmp eax, 0xffffffff
jae 0x4473b0
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 + 0x1c]
mov ecx, 0x10
mov dword [eax + ebp*8], edi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x38], ebp
jmp 0x4473b5
cmp edi, 0xffffffff
je 0x4473db
push ebx
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xdc]
push edi
call dword [esp + 0x40]
test eax, eax
jne 0x4475ea
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 5
jb 0x447335
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x447321
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0xe8], 0
mov dword [esp + 0x18], 0
jbe 0x4474ed
lea eax, [esi + 4]
mov esi, dword [esp + 0x40]
lea eax, [eax + ebp*8]
add esi, 4
mov dword [esp + 0x24], eax
nop dword [eax]
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov ebx, ecx
or ebx, 4
and al, 2
cmove ebx, ecx
test dl, 4
je 0x447454
push 0
push 0
push 0
push dword [esi - 4]
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push ebx
push dword [eax + 0xdc]
push dword [esi - 4]
call dword [esp + 0x40]
test eax, eax
jne 0x4475ea
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, dword [esi - 4]
mov dword [ecx - 4], eax
xor eax, eax
mov word [ecx], ax
movzx eax, word [esi]
mov ebx, eax
test al, 1
je 0x447495
mov eax, 0x300
mov word [ecx], ax
mov edx, eax
movzx ebx, word [esi]
movzx eax, bx
movzx ebx, dx
mov edi, eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x30]
test al, 2
je 0x4474ba
or edx, 0x400
mov word [ecx], dx
movzx eax, word [esi]
movzx ebx, dx
jmp 0x4474be
mov eax, dword [esp + 0x20]
test al, 4
je 0x4474c8
or ebx, 0x10
mov word [ecx], bx
mov eax, dword [esp + 0x18]
inc ebp
inc eax
mov dword [esp + 0x38], ebp
add ecx, 8
mov dword [esp + 0x18], eax
add esi, 8
mov dword [esp + 0x24], ecx
cmp eax, dword [esp + 0xe8]
jb 0x447420
test ebp, ebp
jne 0x447608
cmp byte [esp + 0xf8], 0
je 0x447783
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
push 0
push dword [esp + 0x40]
add eax, 0xdc
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xe8], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x20], ecx
jbe 0x4476ce
lea eax, [edi*8 + 6]
add eax, esi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov edi, eax
movsx eax, word [edi]
lea edx, [esp + 0x48]
mov dword [esp + 0x28], eax
xor esi, esi
mov eax, dword [esp + 0x40]
push edx
push esi
mov dword [esp + 0x50], esi
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x30], eax
call ecx
test eax, eax
jne 0x44763d
mov ecx, dword [esp + 0x48]
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 [esp + 0x48]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x44763d
test ebx, ebx
jne 0x44763d
cmp dword [esp + 0x48], ebx
je 0x44763d
mov eax, dword [esp + 0x14]
inc dword [esp + 0x2c]
push ebx
push dword [eax + 0xdc]
push dword [esp + 0x2c]
call dword [esp + 0x40]
movzx eax, si
jmp 0x4476a8
cmp byte [esp + 0x13], 0
je 0x4475fe
push dword [esp + 0x1c]
call dword [0x4fe09c]
add esp, 4
mov eax, 4
jmp 0x4472dd
mov esi, dword [esp + 0x1c]
push 0
push 0
push ebp
push esi
call fcn.00465280
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jns 0x44762e
mov eax, 0xc
jmp 0x4472dd
jle 0x44750d
mov dword [esp + 0x2c], ebx
jmp 0x447527
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
push dword [esp + 0x2c]
call dword [esp + 0x40]
test ebx, ebx
jne 0x44765a
movzx eax, si
jmp 0x4476a8
mov edx, dword [esp + 0x28]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x28]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x18]
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
movzx eax, cx
mov ecx, dword [esp + 0x40]
add edi, 8
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov ecx, dword [esp + 0x20]
cmp ebp, dword [esp + 0xe8]
jb 0x447550
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x447771
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x447771
nop dword [eax]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.004458c0
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x44775e
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push 0
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x2c]
test eax, eax
jne 0x447742
cmp dword [esp + 0x44], eax
je 0x447742
test ebx, ebx
jne 0x447742
cmp dword [esp + 0x48], ebx
je 0x447742
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x7c]
call dword [esp + 0x40]
inc esi
rol edi, 1
cmp esi, 5
jb 0x447707
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4476f0
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x447787
mov ebx, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x44779b
push dword [esp + 0x1c]
call dword [0x4fe09c]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4477a9
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
cmp byte [esp + 0xf4], 0
je 0x447809
test ebp, ebp
jne 0x447809
cmp byte [esp + 0xf8], 0
jne 0x447809
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x20], ebp
jne 0x447809
cmp byte [ebx + 0xe2], 0
jne 0x447809
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00447060
add esp, 8
test eax, eax
jne 0x447809
mov eax, dword [esp + 0x20]
test eax, eax
je 0x447809
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x4477fc
test eax, eax
jns 0x4477fe
mov eax, ecx
cdq
push edx
push eax
call fcn.00465790
add esp, 8
xor eax, eax
jmp 0x4472dd
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043e7f2
add esp, 0xcc
ret