Function at 0x44d360
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [ebp - 0x40c], eax
je 0x44d62a
test eax, eax
je 0x44d62a
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x44d62a
mov eax, dword [esi + 0x1008c]
cmp eax, 4
jne 0x44d3ca
push str.Write_attempted_on_connection_in_error_state
push esi
call fcn.00449de0
add esp, 8
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x44d3f5
mov eax, esi
call fcn.0044d1f0
test eax, eax
jl 0x44d3b5
cmp dword [esi + 0x1008c], 2
je 0x44d435
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x44d40d
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x44d435
push str.attempting_to_write_when_not_connected
push esi
call fcn.00449de0
add esp, 8
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push ebx
mov ebx, dword [esi + 0x10050]
add ebx, dword [esi + 0x14]
push eax
call fcn.00450940
add esp, 4
test eax, eax
mov dword [ebp - 0x408], eax
jne 0x44d478
push str.authdata_get_context___failed_in_SCUL_SSL_Write__
push esi
call fcn.00449de0
add esp, 8
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
cmp edi, eax
jbe 0x44d481
mov edi, eax
mov ecx, dword [ebp - 0x40c]
push edi
push ecx
push ebx
call fcn.00506e90
push edi
push str.Sending_plaintext:__d_bytes_n
push 1
call fcn.004774c0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10050]
add esp, 0x18
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x434], ebx
add edi, ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x430], ecx
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 0x440], edx
push ebx
lea edx, [ebp - 0x448]
push ecx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], 6
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 4
mov dword [ebp - 0x410], edx
call sub.Secur32.dll_EncryptMessage
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x10], edi
jge 0x44d575
push 0x3ff
lea edx, [ebp - 0x403]
push ebx
push edx
mov byte [ebp - 0x404], bl
call fcn.0050be90
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.00470ef0
lea ecx, [ebp - 0x404]
push ecx
push str.Error_returned_by_EncryptMessage__:__s
push esi
call fcn.00449de0
add esp, 0x24
jmp 0x44d462
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [esi + 0x100a0]
lea edi, [edx + eax]
add edi, dword [ebp - 0x448]
mov edx, dword [esi + 0x10050]
mov eax, dword [esi + 0x10094]
push ecx
push edi
push edx
push eax
call fcn.0044a420
add esp, 0x10
cmp eax, edi
je 0x44d5f9
push 0x3ff
lea ecx, [ebp - 0x403]
push ebx
push ecx
mov byte [ebp - 0x404], bl
call fcn.0050be90
add esp, 0xc
push 0x400
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00470ef0
lea eax, [ebp - 0x404]
push eax
push str.Error_sending_data_to_server__3_:__s
push esi
call fcn.00449de0
add esp, 0x18
jmp 0x44d462
mov ecx, dword [ebp - 0x430]
mov edx, dword [ebp - 0x448]
add ecx, edx
sub eax, ecx
push eax
push str._d_bytes_of_application_data_sent_n
push 1
call fcn.004774c0
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
push str.SCUL_SSL_Write
push str._s__:_Invalid_argument
push esi
call fcn.00449de0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
mov eax, 0xfffffffe
pop esi
call fcn.00506c7d
mov esp, ebp
pop ebp
ret