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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4b7180]
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 0x454479
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.004552c0
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
mov esi, dword [ebp - 0x40]
sub ecx, esi
cmp ecx, 0x4200
jbe 0x4542d0
lea eax, [esi + 0x4200]
mov dword [ebp - 0x3c], eax
jmp 0x454309
jae 0x454309
mov eax, dword [ebp - 0x38]
sub eax, esi
cmp eax, 0x4200
jae 0x4542ee
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00455380
mov esi, dword [ebp - 0x40]
jmp 0x454309
mov edi, 0x4200
sub edi, ecx
push edi
push 0
push ebx
call fcn.00470360
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.0046fde0
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 0x45441e
mov ebx, dword [ebp - 0x28]
xor edi, edi
add ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x34]
je 0x4543a8
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 0x45440f
add edi, eax
cmp edi, ebx
jne 0x454387
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 0x454403
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4543e4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454499
push ecx
push esi
call fcn.0046de58
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test ebx, ebx
je 0x454479
mov eax, dword [ebp - 0x44]
jmp 0x454280
mov ebx, dword [ebp - 0x44]
mov edx, str.error_sending_data_to_socket__or_server_disconnected
mov edi, 0x34
jmp 0x454428
mov edx, 0x4a7f80
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.004044b0
test esi, esi
je 0x454475
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x45446b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454499
push ecx
push esi
call fcn.0046de58
add esp, 8
xor al, al
jmp 0x45447b
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.0046de4a
mov esp, ebp
pop ebp
ret 8
call fcn.004734cf
int3