Function at 0x4df651
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.004283d8
test al, al
jne 0x4df692
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]
mov eax, esp
push dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.00489a5b
mov eax, esi
jmp 0x4df95f
mov esi, dword [ebx + 0x254]
cmp esi, edi
jbe 0x4df6e4
cmp esi, dword [ebp + 0x18]
jb 0x4df6a4
mov esi, dword [ebp + 0x18]
mov eax, dword [ebx + 0x24c]
mov ecx, dword [ebx + 0x258]
push esi
add ecx, eax
push ecx
push dword [ebp + 0x14]
call fcn.00526ea0
mov eax, dword [ebp + 0x1c]
sub dword [ebp + 0x18], esi
add esp, 0xc
sub dword [ebx + 0x254], esi
mov dword [eax], esi
je 0x4df6d5
add dword [ebx + 0x258], esi
cmp dword [ebp + 0x18], edi
jne 0x4df6e4
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x4df95f
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 0x4df8e2
cmp byte [ebp + 0xb], 0
je 0x4df7aa
cmp dword [ebx + 0x254], edi
jbe 0x4df714
mov dword [ebp - 0xc], edi
jmp 0x4df745
cmp dword [ebx + 0x248], edi
ja 0x4df70f
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4df908
push dword [ebp + 0x20]
lea edi, [ebp - 0xc]
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.004899d0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x4df90b
xor edi, edi
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x248]
sub eax, ecx
mov edx, eax
je 0x4df79e
push dword [ebp + 0x20]
mov eax, dword [ebx + 0x23c]
lea esi, [ebp + 8]
push esi
add ecx, eax
push edx
push ecx
push ecx
mov ecx, dword [ebx]
mov eax, esp
push dword [ebp + 0x10]
lea esi, [ebp - 0x18]
mov dword [ebp + 8], edi
mov dword [eax], ecx
call fcn.00489a5b
mov eax, dword [eax]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
je 0x4df90b
cmp eax, 2
jne 0x4df795
mov byte [ebp - 5], cl
mov eax, dword [ebp + 8]
add dword [ebx + 0x248], eax
cmp dword [ebx + 0x248], edi
je 0x4df947
mov eax, dword [ebx + 0x23c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x248]
push edi
mov dword [ebp - 0x54], eax
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
lea eax, [ebx + 4]
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 0x4df956
cmp eax, 0x80090318
jne 0x4df814
cmp byte [ebp - 5], 0
jne 0x4df947
mov byte [ebp + 0xb], 1
jmp 0x4df8ec
cmp eax, edi
mov byte [ebp + 0xb], 0
jne 0x4df894
cmp dword [ebp - 0x44], esi
jne 0x4df894
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x4df82e
mov byte [ebp + 0xb], 1
jmp 0x4df894
cmp eax, dword [ebp + 0x18]
jb 0x4df836
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.00526ea0
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 0x4df892
lea esi, [ebx + 0x24c]
push edi
call fcn.004e34b2
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
and dword [ebx + 0x258], 0
push edi
add ecx, eax
push ecx
push dword [esi]
call fcn.00526ea0
add esp, 0xc
mov dword [ebx + 0x254], edi
xor edi, edi
cmp dword [ebp - 0x2c], 5
jne 0x4df8c8
cmp dword [ebp - 0x30], edi
jbe 0x4df8ce
mov esi, dword [ebx + 0x248]
sub esi, dword [ebp - 0x30]
je 0x4df8ce
mov eax, dword [ebx + 0x23c]
push dword [ebp - 0x30]
lea ecx, [eax + esi]
push ecx
push eax
call fcn.005201d0
add esp, 0xc
sub dword [ebx + 0x248], esi
jmp 0x4df8ce
mov dword [ebx + 0x248], edi
cmp dword [ebp - 0x14], 0x90317
je 0x4df912
cmp dword [ebp - 0x14], edi
jne 0x4df956
cmp byte [ebp + 0xb], 0
je 0x4df947
cmp dword [ebx + 0x248], edi
sete byte [ebp + 0xb]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x4df6fd
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x4df95f
push 2
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4df95f
push dword [ebp + 0x20]
lea eax, [ebp + 0x18]
push dword [ebp + 0x10]
mov edi, ebx
push eax
call fcn.004df966
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x18], ecx
je 0x4df90b
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
lea eax, [ebp + 0x18]
jbe 0x4df93c
and dword [ebp + 0x18], 0
jmp 0x4df943
mov dword [ebp + 0x18], 2
mov ecx, dword [eax]
jmp 0x4df90b
mov eax, dword [ebp + 0x1c]
cmp dword [eax], edi
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], edi
ja 0x4df943
jmp 0x4df93c
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
pop edi
pop esi
pop ebx
leave
ret 0x1c