Function at 0x456140
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f25d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c0180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
test ebx, ebx
je 0x456389
mov dword [ebp - 0x50], 0x4200
nop dword [eax + eax]
mov edi, dword [eax + 0x30]
cmp ebx, edi
mov dword [ebp - 0x40], 0
cmovb edi, ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.004571d0
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
mov esi, dword [ebp - 0x40]
sub ecx, esi
cmp ecx, 0x4200
jbe 0x4561e0
lea eax, [esi + 0x4200]
mov dword [ebp - 0x3c], eax
jmp 0x456219
jae 0x456219
mov eax, dword [ebp - 0x38]
sub eax, esi
cmp eax, 0x4200
jae 0x4561fe
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00457290
mov esi, dword [ebp - 0x40]
jmp 0x456219
mov edi, 0x4200
sub edi, ecx
push edi
push 0
push ebx
call fcn.00473110
add esp, 0xc
add ebx, edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x44]
push edi
push dword [ebp - 0x48]
mov dword [ebp - 0x30], 7
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
lea ecx, [eax + esi]
mov dword [ebp - 0x28], edi
lea eax, [ecx + edi]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
push ecx
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x1c], eax
call fcn.00472b90
add esp, 0xc
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push 0
push eax
push 0
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
jne 0x45632e
mov ebx, dword [ebp - 0x28]
xor edi, edi
add ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x34]
je 0x4562b8
push 0
mov eax, ebx
sub eax, edi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x44]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x45631f
add edi, eax
cmp edi, ebx
jne 0x456297
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x4c]
sub ebx, eax
add dword [ebp - 0x48], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x456313
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4562f4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4563a9
push ecx
push esi
call fcn.00470c18
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test ebx, ebx
je 0x456389
mov eax, dword [ebp - 0x44]
jmp 0x456190
mov ebx, dword [ebp - 0x44]
mov edx, str.error_sending_data_to_socket__or_server_disconnected
mov edi, 0x34
jmp 0x456338
mov edx, str.this_should_not_happen__but_just_in_case_check_it
mov edi, 0x31
mov ecx, 8
mov eax, ebx
push edi
push edx
mov dword [eax + ecx], 0xffffffff
mov dword [eax + ecx + 4], 0xffffffff
lea ecx, [ebx + 0x10]
call fcn.004047f0
test esi, esi
je 0x456385
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x45637b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4563a9
push ecx
push esi
call fcn.00470c18
add esp, 8
xor al, al
jmp 0x45638b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470c0a
mov esp, ebp
pop ebp
ret 8
call fcn.0047627f
int3