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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65fb0b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x3468], ebx
je 0x5d4c39
cmp byte [esi + 0xdb], bl
je 0x5d4afa
mov eax, dword [esi + 0xc0]
mov eax, dword [eax + 0x16c]
jmp 0x5d4b06
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x168]
cmp eax, 5
jne 0x5d4c39
mov dword [ebp - 0x28], ebx
cmp ebx, 5
jge 0x5d4c05
inc ebx
mov dword [ebp - 0x28], ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [esi + 0x3468]
push ecx
call dword [0x756848]
add esp, 0xc
test eax, eax
jg 0x5d51a3
push eax
mov edx, dword [esi + 0x3468]
push edx
call dword [0x756858]
add esp, 8
mov edi, eax
cmp edi, 2
je 0x5d4b8b
cmp edi, 3
je 0x5d4b12
lea ecx, [ebp + 0xc]
call fcn.00402500
mov byte [ebp - 4], 2
push edi
push str.SSL_write_error__ld_r_n
lea eax, [ebp + 0xc]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [ebp + 0xc]
push edx
jmp 0x5d4bd5
push 0x14
mov eax, dword [esi + 0x31f0]
push eax
mov ecx, esi
call fcn.0055d8a0
test eax, eax
je 0x5d4b12
lea ecx, [ebp + 0xc]
call fcn.00402500
mov byte [ebp - 4], 1
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.SSL_write__select_error__ld_r_n
lea ecx, [ebp + 0xc]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402570
mov eax, 0x80090304
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.SSL_write_error__tryCount5_r_n
lea ecx, [ebp - 0x20]
call fcn.004030b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
jmp 0x5d4be7
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 4
cmp dword [esi + 0x33e8], ebx
jne 0x5d4e36
lea edi, [esi + 0x3380]
mov eax, dword [esi + 0xc0]
push edi
push 4
lea ecx, [esi + 0x3330]
push ecx
mov edx, dword [eax + 0x428]
call edx
mov dword [esi + 0x3394], eax
cmp eax, ebx
je 0x5d4d44
lea ecx, [ebp + 0xc]
call fcn.00402500
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x3394]
push eax
push str.Error_0x_x_reading_SECPKG_ATTR_STREAM_SIZES_n
lea ecx, [ebp + 0xc]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0xc4]
cmp eax, ebx
jne 0x5d4cd2
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp + 8]
call fcn.004030b0
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
push eax
mov edx, dword [0x755c80]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 4], 5
test byte [ebp - 0x18], 1
je 0x5d4d01
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp + 8]
call fcn.00402570
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov esi, dword [esi + 0x3394]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 0x3388]
push edx
mov eax, dword [esi + 0x3384]
push eax
mov ecx, dword [edi]
push ecx
push str.Header:__d__Trailer:__d__MaxMessage:__d_r_n
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f70
add esp, 0x14
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esi + 0x3388]
add ecx, dword [esi + 0x3384]
mov edx, dword [edi]
lea eax, [ecx + edx + 0x80]
mov dword [esi + 0x33f0], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x33e8], eax
cmp eax, ebx
jne 0x5d4e36
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.0055b6c0
lea ecx, [ebp + 0xc]
call fcn.00402500
mov ebx, 7
mov byte [ebp - 4], bl
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x5d4de4
mov eax, dword [esi + 0xc0]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp + 8]
call fcn.004030b0
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], 2
mov eax, dword [eax]
push eax
mov edx, dword [0x755c80]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 2
je 0x5d4e0f
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00402570
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
jmp 0x5d4be7
mov edx, dword [esi + 0x33e8]
mov eax, dword [esi + 0x3380]
add eax, edx
mov dword [esi + 0x33f4], eax
mov ebx, dword [esi + 0x3388]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jae 0x5d4e5c
mov dword [ebp - 0x24], edi
jmp 0x5d4e61
mov dword [ebp - 0x24], ebx
mov edi, ebx
push edi
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00619c20
add esp, 0xc
mov edx, dword [esi + 0x33f4]
mov byte [ebx + edx], 0
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jae 0x5d4e8a
mov ecx, dword [esi + 0x33f4]
mov byte [eax + ecx], 0
mov dword [esi + 0x33f8], edi
mov edx, dword [esi + 0x33e8]
mov dword [esi + 0x33ac], edx
lea ebx, [esi + 0x33a4]
mov eax, dword [esi + 0x3380]
mov dword [ebx], eax
mov dword [esi + 0x33a8], 7
mov eax, dword [esi + 0x33f4]
mov dword [esi + 0x33b8], eax
mov dword [esi + 0x33b0], edi
mov dword [esi + 0x33b4], 1
add eax, edi
mov dword [esi + 0x33c4], eax
mov ecx, dword [esi + 0x3384]
mov dword [esi + 0x33bc], ecx
mov dword [esi + 0x33c0], 6
mov dword [esi + 0x33cc], 0
lea eax, [esi + 0x3398]
mov dword [eax], 0
mov dword [esi + 0x339c], 4
mov dword [esi + 0x33a0], ebx
mov edx, dword [esi + 0xc0]
push 0
push eax
push 0
lea eax, [esi + 0x3330]
push eax
mov ecx, dword [edx + 0x460]
call ecx
mov dword [esi + 0x3394], eax
test eax, eax
jge 0x5d4f73
lea ecx, [ebp + 0xc]
call fcn.00402500
mov byte [ebp - 4], 9
mov edx, dword [esi + 0x3394]
push edx
push str.Error_0x_x_returned_by_EncryptMessage_n
lea eax, [ebp + 0xc]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [0x755c84]
push edx
jmp 0x5d4d05
mov eax, dword [esi + 0x194]
test eax, eax
je 0x5d4fee
cmp byte [eax + 0x137], 0
je 0x5d4fee
mov ecx, dword [esi + 0x346c]
test ecx, ecx
je 0x5d4fee
mov edi, dword [esi + 0x33bc]
add edi, dword [esi + 0x33b0]
add edi, dword [ebx]
push edi
mov eax, dword [esi + 0x33e8]
push eax
call fcn.005d4aa0
mov ebx, eax
test ebx, ebx
je 0x5d4fd3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push str._ld_bytes_of_request_sent_r_n
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402f70
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x5d516f
push 0
mov eax, dword [esi + 0x33bc]
add eax, dword [esi + 0x33b0]
add eax, dword [ebx]
push eax
mov ecx, dword [esi + 0x33e8]
push ecx
mov edx, dword [esi + 0x31f0]
push edx
call sub.WS2_32.dll_send
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
je 0x5d5024
test edi, edi
jne 0x5d5159
call sub.WS2_32.dll_WSAGetLastError
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
jne 0x5d507f
push 0
mov eax, dword [esi + 0x33bc]
add eax, dword [esi + 0x33b0]
add eax, dword [ebx]
push eax
mov ecx, dword [esi + 0x33e8]
push ecx
mov edx, dword [esi + 0x31f0]
push edx
call sub.WS2_32.dll_send
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
je 0x5d5078
test edi, edi
je 0x5d5078
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], 0
jmp 0x5d5030
call sub.WS2_32.dll_WSAGetLastError
jmp 0x5d502d
cmp byte [ebp - 0x11], 0
je 0x5d5159
lea ecx, [ebp + 0xc]
call fcn.00402500
mov ebx, 0xa
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x20]
push edi
push str.Error__d_sending_data_to_server__3__n
lea eax, [ebp + 0xc]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x5d50dc
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
lea ecx, [ebp + 8]
call fcn.004030b0
mov byte [ebp - 4], 0xb
or dword [ebp - 0x18], 4
mov eax, dword [eax]
push eax
mov ecx, dword [0x755c80]
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 4
je 0x5d5107
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp + 8]
call fcn.00402570
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov ecx, dword [esi + 0xc0]
add esi, 0x3330
push esi
mov edx, dword [ecx + 0x420]
call edx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push str._ld_bytes_of_request_sent_r_n
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jge 0x5d5197
sub eax, ecx
push eax
mov edx, dword [ebp + 8]
add ecx, edx
push ecx
mov ecx, esi
call fcn.005d4aa0
mov esi, eax
jmp 0x5d4d22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8