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

Disassembly:
sub esp, 0xc
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [esp + 0x18], esi
je 0x47f6f6
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x47f727
push ebx
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x47f758
push edi
lea edi, [ebx*8]
push edi
call fcn.00449bb0
push edi
mov edi, eax
mov dword [esp + 0x18], eax
push ebp
push edi
call fcn.004b5e30
add esp, 0x10
nop dword [eax]
mov ebp, ebx
mov dword [esp + 0x18], 0
lea eax, [edi + esi*8]
sub ebp, esi
test eax, eax
je 0x47f6c5
test ebp, ebp
je 0x47f7eb
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push 0
push 0
push 0
push ecx
push ebp
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x47f5f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add ebx, 4
mov edi, eax
mov dword [ebx], edi
call fcn.004c3d2b
mov dword [eax], edi
cmp dword [ebx], 0x2738
jne 0x47f5f1
mov edi, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x24]
lea eax, [edi + esi*8]
push eax
push ebp
call fcn.0047e760
add esp, 0xc
jmp 0x47f602
mov ebp, dword [esp + 0x20]
jmp 0x47f607
mov eax, dword [esp + 0x18]
add ebx, 4
mov ebp, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x47f67f
mov eax, dword [ebx]
cmp eax, 0xb
je 0x47f620
cmp eax, 0x2733
je 0x47f620
cmp eax, 0x2734
jne 0x47f6c0
mov edi, dword [esp + 0x30]
test edi, edi
jl 0x47f641
mov ebx, dword [esp + 0x2c]
jg 0x47f632
test ebx, ebx
jb 0x47f641
call fcn.0044e5b0
cmp edi, edx
jl 0x47f664
jg 0x47f641
cmp ebx, eax
jb 0x47f664
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x10
push ebp
call fcn.0047e900
add esp, 0x10
test al, al
jne 0x47f580
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call fcn.00449ba0
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
test eax, eax
jle 0x47f620
add dword [esp + 0x14], eax
mov ebx, dword [esp + 0x28]
cmp esi, ebx
jae 0x47f69e
nop
mov ecx, dword [edi + esi*8]
cmp eax, ecx
jl 0x47f6a0
inc esi
sub eax, ecx
cmp esi, ebx
jb 0x47f690
je 0x47f664
mov ecx, dword [edi + esi*8]
add dword [edi + esi*8 + 4], eax
sub ecx, eax
mov eax, ebx
mov dword [edi + esi*8], ecx
sub eax, esi
je 0x47f7ba
test ecx, ecx
je 0x47f789
jmp 0x47f649
or esi, 0xffffffff
jmp 0x47f668
push 0x4f91bc
push str._mongoc_socket_try_sendv
push 0x507
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.sock
push str.mongoc_socket_sendv
push 0x56b
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.in_iov
push str.mongoc_socket_sendv
push 0x56c
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.iovcnt
push str.mongoc_socket_sendv
push 0x56d
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.iov_cur_.iov_len
push str.mongoc_socket_sendv
push 0x5a9
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.iovcnt___cur
push str.mongoc_socket_sendv
push 0x5a8
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.iovcnt
push str._mongoc_socket_try_sendv
push 0x508
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3