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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x470074]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0x99], 0
mov al, byte [edi + 0x9b]
mov dword [edi + 0x1c], 0x406f10
mov dword [edi + 0x20], 0x406890
mov dword [edi + 0x24], 0x4068a0
jne 0x40615c
test al, al
mov eax, dword [0x4734b0]
mov eax, dword [eax + 0x40]
lea eax, [eax*8 - 0x190]
jne 0x40612b
mov ecx, dword [edi + 0x140]
sub ecx, dword [edi + 0x30]
shr eax, 1
cmp ecx, eax
cmovb eax, ecx
lea ecx, [edi + 0x128]
push eax
mov dword [edi + 0x144], eax
lea eax, [esp + 0x14]
push dword [edi + 0x30]
push eax
call fcn.00407690
cmp dword [eax + 0x14], 0x10
jb 0x40606e
mov eax, dword [eax]
push dword [edi + 0x144]
lea esi, [edi + 0x190]
push eax
mov eax, dword [0x4734b0]
mov ecx, esi
mov eax, dword [eax + 0x40]
lea edx, [eax*8 - 0x190]
call fcn.00402080
mov edx, dword [esp + 0x2c]
add esp, 8
cmp edx, 0x10
jb 0x4060ca
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4060c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062ec
push edx
push ecx
call fcn.0041d9cd
add esp, 8
push dword [edi + 0x144]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.SSLEAY32.dll_Ordinal_108]
mov ecx, dword [0x4734b0]
mov esi, eax
lea eax, [edi + 0x190]
mov ecx, dword [ecx + 0x40]
lea ecx, [ecx*8 - 0x190]
push ecx
push eax
push dword [ebx + 0x28]
call dword [sym.imp.LIBEAY32.dll_Ordinal_89]
mov edx, eax
mov byte [edi + 0x9b], 1
add esp, 0x18
mov dword [edi + 0x154], edx
add dword [edi + 0x30], esi
lea eax, [edi + 0x190]
mov dword [edi + 0x150], edx
lea ecx, [edi + 0x28]
mov dword [edi + 0x2c], eax
mov dword [ecx], edx
jmp 0x406287
mov ecx, dword [edi + 0x150]
sub ecx, dword [edi + 0x38]
cmp ecx, eax
cmovb eax, ecx
lea ecx, [edi + 0x28]
mov dword [edi + 0x154], eax
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x144]
add eax, 0x190
add eax, edi
mov dword [edi + 0x2c], eax
mov dword [ecx], edx
jmp 0x406287
test al, al
mov eax, dword [0x4734b0]
mov eax, dword [eax + 0x40]
lea eax, [eax*8 - 0x190]
jne 0x40625b
mov ecx, dword [edi + 0x148]
sub ecx, dword [edi + 0x30]
shr eax, 1
cmp ecx, eax
cmovb eax, ecx
lea ecx, [edi + 0xcc]
push eax
mov dword [edi + 0x14c], eax
lea eax, [esp + 0x14]
push dword [edi + 0x30]
push eax
call fcn.00407690
cmp dword [eax + 0x14], 0x10
jb 0x4061a5
mov eax, dword [eax]
push dword [edi + 0x14c]
lea esi, [edi + 0x190]
push eax
mov eax, dword [0x4734b0]
mov ecx, esi
mov eax, dword [eax + 0x40]
lea edx, [eax*8 - 0x190]
call fcn.00402080
mov edx, dword [esp + 0x2c]
add esp, 8
cmp edx, 0x10
jb 0x406201
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4061f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062f1
push edx
push ecx
call fcn.0041d9cd
add esp, 8
push dword [edi + 0x14c]
mov dword [edi + 0x2c], esi
push esi
push dword [ebx + 0x20]
call dword [sym.imp.SSLEAY32.dll_Ordinal_108]
mov ecx, dword [0x4734b0]
mov esi, eax
lea eax, [edi + 0x190]
mov ecx, dword [ecx + 0x40]
lea ecx, [ecx*8 - 0x190]
push ecx
push eax
push dword [ebx + 0x28]
call dword [sym.imp.LIBEAY32.dll_Ordinal_89]
lea ecx, [edi + 0x190]
mov dword [edi + 0x15c], eax
add esp, 0x18
mov dword [edi + 0x158], eax
add dword [edi + 0x30], esi
mov byte [edi + 0x9b], 1
mov dword [edi + 0x2c], ecx
jmp 0x406282
mov ecx, dword [edi + 0x158]
sub ecx, dword [edi + 0x38]
cmp ecx, eax
cmovb eax, ecx
mov dword [edi + 0x15c], eax
mov eax, dword [edi + 0x38]
add eax, 0x190
add eax, edi
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x15c]
lea ecx, [edi + 0x28]
mov dword [ecx], eax
push 0
push edi
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 1
push ecx
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4062d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4062d6
mov eax, dword [edi + 0x24]
push edi
push ebx
call eax
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
call fcn.00438969
call fcn.00438969
int3