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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x496074]
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], 0x405d00
mov dword [edi + 0x20], 0x405680
mov dword [edi + 0x24], 0x405690
jne 0x404f4c
test al, al
mov eax, dword [0x499600]
mov eax, dword [eax + 0x40]
lea eax, [eax*8 - 0x190]
jne 0x404f1b
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.004064c0
cmp dword [eax + 0x14], 0x10
jb 0x404e5e
mov eax, dword [eax]
push dword [edi + 0x144]
lea esi, [edi + 0x190]
push eax
mov eax, dword [0x499600]
mov ecx, esi
mov eax, dword [eax + 0x40]
lea edx, [eax*8 - 0x190]
call fcn.004020d0
mov edx, dword [esp + 0x2c]
add esp, 8
cmp edx, 0x10
jb 0x404eba
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404eb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050dc
push edx
push ecx
call fcn.00439350
add esp, 8
push dword [edi + 0x144]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.SSLEAY32.dll_Ordinal_108]
mov ecx, dword [0x499600]
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 0x405077
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 0x405077
test al, al
mov eax, dword [0x499600]
mov eax, dword [eax + 0x40]
lea eax, [eax*8 - 0x190]
jne 0x40504b
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.004064c0
cmp dword [eax + 0x14], 0x10
jb 0x404f95
mov eax, dword [eax]
push dword [edi + 0x14c]
lea esi, [edi + 0x190]
push eax
mov eax, dword [0x499600]
mov ecx, esi
mov eax, dword [eax + 0x40]
lea edx, [eax*8 - 0x190]
call fcn.004020d0
mov edx, dword [esp + 0x2c]
add esp, 8
cmp edx, 0x10
jb 0x404ff1
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404fe7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050e1
push edx
push ecx
call fcn.00439350
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 [0x499600]
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 0x405072
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 0x4050c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4050c6
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.0043930f
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.0043930f
mov esp, ebp
pop ebp
ret 8
call fcn.004542d9
call fcn.004542d9
int3