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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1e98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x4d5c6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d5c6c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x80]
push eax
push 0x4bd11c
lea edi, [esp + 0x1c]
call fcn.00448cf0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
add esp, 8
cmp eax, ebx
jl 0x44718b
push str.wbf_ap_17164
push esi
call fcn.0048342f
add esp, 8
cmp eax, ebx
je 0x44718b
sub eax, esi
cmp eax, 0xffffffff
jne 0x447278
cmp dword [esi - 0xc], ebx
jl 0x4471ad
push str.wbf_ap_17165
push esi
call fcn.0048342f
add esp, 8
cmp eax, ebx
je 0x4471ad
sub eax, esi
cmp eax, 0xffffffff
jne 0x447278
mov eax, dword [ebp + 0x48]
cmp eax, ebx
jne 0x4471c3
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
jmp 0x447338
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea esp, [esp]
mov ecx, dword [ebp + 0x40]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
push ecx
call ebx
mov edi, eax
test edi, edi
jle 0x447213
mov eax, dword [ebp + 0x48]
cmp eax, edi
jbe 0x4471fd
mov ecx, dword [ebp + 0x40]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.00483520
add esp, 0xc
mov eax, dword [ebp + 0x48]
cmp eax, edi
jb 0x447229
sub eax, edi
push 0
push eax
lea esi, [ebp + 0x3c]
call fcn.00411eb0
jmp 0x447229
jge 0x447229
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x447252
mov byte [ebp + 0x76], 1
test edi, edi
jle 0x447234
mov eax, dword [ebp + 0x48]
test eax, eax
ja 0x4471d0
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push 0x23
push 0x81da
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov esi, dword [esp + 0x14]
jmp 0x44732e
test esi, esi
jne 0x447259
or esi, 0xffffffff
lea eax, [esp + 0x14]
call fcn.00406f40
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x48], ebx
jne 0x44728c
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
jmp 0x447338
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x40]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x4472da
mov eax, dword [ebp + 0x48]
cmp eax, edi
jbe 0x4472c4
mov ecx, dword [ebp + 0x40]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.00483520
add esp, 0xc
mov eax, dword [ebp + 0x48]
cmp eax, edi
jb 0x4472fd
sub eax, edi
push 0
push eax
lea esi, [ebp + 0x3c]
call fcn.00411eb0
jmp 0x4472fd
jge 0x447305
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x447372
mov ebx, 1
add dword [esp + 0x18], ebx
mov byte [ebp + 0x76], 1
test edi, edi
mov esi, dword [esp + 0x14]
jl 0x44730a
cmp edi, dword [ebp + 0x48]
je 0x447319
test ebx, ebx
je 0x447319
cmp dword [esp + 0x18], 5
jl 0x447290
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x6c]
push 0x21
push 0x81da
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44735c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x447379
or esi, 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4473a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret