Function at 0x57f359
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
xor edi, edi
mov eax, ebx
mov dword [esi], edi
call fcn.004d151c
test al, al
jne 0x57f39b
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebx + 0x20]
mov eax, esp
push dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.0057dd60
mov eax, esi
jmp 0x57f625
mov esi, dword [ebx + 0x18]
cmp esi, edi
jbe 0x57f3de
cmp esi, dword [ebp + 0x18]
jb 0x57f3aa
mov esi, dword [ebp + 0x18]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
push esi
add ecx, eax
push ecx
push dword [ebp + 0x14]
call fcn.005fbd60
mov eax, dword [ebp + 0x1c]
sub dword [ebp + 0x18], esi
add esp, 0xc
sub dword [ebx + 0x18], esi
mov dword [eax], esi
je 0x57f3cf
add dword [ebx + 0x1c], esi
cmp dword [ebp + 0x18], edi
jne 0x57f3de
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x57f625
lea eax, [ebp - 0x54]
mov byte [ebp - 5], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
jmp 0x57f5ab
cmp byte [ebp + 0xb], 0
je 0x57f490
cmp dword [ebx + 0x18], edi
jbe 0x57f40b
mov dword [ebp - 0xc], edi
jmp 0x57f43a
cmp dword [ebx + 0xc], edi
ja 0x57f406
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x57f5ce
push dword [ebp + 0x20]
lea edi, [ebp - 0xc]
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.0057dcd5
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x57f5d1
xor edi, edi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
sub eax, ecx
mov edx, eax
je 0x57f487
push dword [ebp + 0x20]
mov eax, dword [ebx]
lea esi, [ebp + 8]
push esi
add ecx, eax
push edx
push ecx
push ecx
mov ecx, dword [ebx + 0x20]
mov eax, esp
push dword [ebp + 0x10]
lea esi, [ebp - 0x18]
mov dword [ebp + 8], edi
mov dword [eax], ecx
call fcn.0057dd60
mov eax, dword [eax]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
je 0x57f5d1
cmp eax, 2
jne 0x57f481
mov byte [ebp - 5], cl
mov eax, dword [ebp + 8]
add dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], edi
je 0x57f60d
mov eax, dword [ebx]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0xc]
push edi
mov dword [ebp - 0x54], eax
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
lea eax, [ebx + 0x24]
inc esi
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
call sub.Secur32.dll_DecryptMessage
cmp eax, 0x80090325
mov dword [ebp - 0x14], eax
je 0x57f61c
cmp eax, 0x80090318
jne 0x57f4f3
cmp byte [ebp - 5], 0
jne 0x57f60d
mov byte [ebp + 0xb], 1
jmp 0x57f5b2
cmp eax, edi
mov byte [ebp + 0xb], 0
jne 0x57f56a
cmp dword [ebp - 0x44], esi
jne 0x57f56a
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x57f50d
mov byte [ebp + 0xb], 1
jmp 0x57f56a
cmp eax, dword [ebp + 0x18]
jb 0x57f515
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp - 0x40]
add eax, esi
push eax
call fcn.005fbd60
sub dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x1c]
add esi, edi
mov edi, dword [ebp - 0x48]
add esp, 0xc
sub edi, dword [ebp - 0x10]
mov dword [eax], esi
je 0x57f568
lea esi, [ebx + 0x10]
push edi
call fcn.004b38b4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
and dword [ebx + 0x1c], 0
push edi
add ecx, eax
push ecx
push dword [esi]
call fcn.005fbd60
add esp, 0xc
mov dword [ebx + 0x18], edi
xor edi, edi
cmp dword [ebp - 0x2c], 5
jne 0x57f594
cmp dword [ebp - 0x30], edi
jbe 0x57f597
mov esi, dword [ebx + 0xc]
sub esi, dword [ebp - 0x30]
je 0x57f597
mov eax, dword [ebx]
push dword [ebp - 0x30]
lea ecx, [eax + esi]
push ecx
push eax
call fcn.005f9c50
add esp, 0xc
sub dword [ebx + 0xc], esi
jmp 0x57f597
mov dword [ebx + 0xc], edi
cmp dword [ebp - 0x14], 0x90317
je 0x57f5d8
cmp dword [ebp - 0x14], edi
jne 0x57f61c
cmp byte [ebp + 0xb], 0
je 0x57f60d
cmp dword [ebx + 0xc], edi
sete byte [ebp + 0xb]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x57f3f7
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x57f625
push 2
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x57f625
push dword [ebp + 0x20]
lea eax, [ebp + 0x18]
push dword [ebp + 0x10]
mov edi, ebx
push eax
call fcn.0057f62c
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x18], ecx
je 0x57f5d1
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
lea eax, [ebp + 0x18]
jbe 0x57f602
and dword [ebp + 0x18], 0
jmp 0x57f609
mov dword [ebp + 0x18], 2
mov ecx, dword [eax]
jmp 0x57f5d1
mov eax, dword [ebp + 0x1c]
cmp dword [eax], edi
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], edi
ja 0x57f609
jmp 0x57f602
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
pop edi
pop esi
pop ebx
leave
ret 0x1c