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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493f8d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4b30fc]
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 0x451739
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
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00452570
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
mov esi, dword [ebp - 0x40]
sub ecx, esi
cmp ecx, 0x4200
jbe 0x45158e
lea eax, [esi + 0x4200]
mov dword [ebp - 0x3c], eax
jmp 0x4515c7
jae 0x4515c7
mov eax, dword [ebp - 0x38]
sub eax, esi
cmp eax, 0x4200
jae 0x4515ac
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00452600
mov esi, dword [ebp - 0x40]
jmp 0x4515c7
mov edi, 0x4200
sub edi, ecx
push edi
push 0
push ebx
call fcn.0046cae0
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.0046c560
add esp, 0xc
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push 0
push eax
push 0
lea eax, [ebx + 0x20]
push eax
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
jne 0x4516de
mov ecx, dword [ebp - 0x28]
xor edi, edi
add ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
add ebx, ecx
je 0x451668
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 0x4516cf
add edi, eax
cmp edi, ebx
jne 0x451647
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 0x4516c3
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4516a4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451759
push ecx
push esi
call fcn.0046a718
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test ebx, ebx
je 0x451739
mov eax, dword [ebp - 0x44]
jmp 0x451541
mov ebx, dword [ebp - 0x44]
mov edx, str.error_sending_data_to_socket__or_server_disconnected
mov edi, 0x34
jmp 0x4516e8
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.00402d80
test esi, esi
je 0x451735
mov ecx, dword [ebp - 0x38]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x45172b
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451759
push ecx
push esi
call fcn.0046a718
add esp, 8
xor al, al
jmp 0x45173b
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.0046a70a
mov esp, ebp
pop ebp
ret 8
call fcn.0046fc3f
int3