Function at 0x475fb9
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.0044cfb3
test al, al
jne 0x475ffa
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.004c8fbf
mov eax, esi
jmp 0x4762c7
mov esi, dword [ebx + 0x254]
cmp esi, edi
jbe 0x47604c
cmp esi, dword [ebp + 0x18]
jb 0x47600c
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.005987b0
mov eax, dword [ebp + 0x1c]
sub dword [ebp + 0x18], esi
add esp, 0xc
sub dword [ebx + 0x254], esi
mov dword [eax], esi
je 0x47603d
add dword [ebx + 0x258], esi
cmp dword [ebp + 0x18], edi
jne 0x47604c
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x4762c7
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 0x47624a
cmp byte [ebp + 0xb], 0
je 0x476112
cmp dword [ebx + 0x254], edi
jbe 0x47607c
mov dword [ebp - 0xc], edi
jmp 0x4760ad
cmp dword [ebx + 0x248], edi
ja 0x476077
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x476270
push dword [ebp + 0x20]
lea edi, [ebp - 0xc]
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.004c8f34
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x476273
xor edi, edi
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x248]
sub eax, ecx
mov edx, eax
je 0x476106
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.004c8fbf
mov eax, dword [eax]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
je 0x476273
cmp eax, 2
jne 0x4760fd
mov byte [ebp - 5], cl
mov eax, dword [ebp + 8]
add dword [ebx + 0x248], eax
cmp dword [ebx + 0x248], edi
je 0x4762af
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 0x4762be
cmp eax, 0x80090318
jne 0x47617c
cmp byte [ebp - 5], 0
jne 0x4762af
mov byte [ebp + 0xb], 1
jmp 0x476254
cmp eax, edi
mov byte [ebp + 0xb], 0
jne 0x4761fc
cmp dword [ebp - 0x44], esi
jne 0x4761fc
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x476196
mov byte [ebp + 0xb], 1
jmp 0x4761fc
cmp eax, dword [ebp + 0x18]
jb 0x47619e
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.005987b0
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 0x4761fa
lea esi, [ebx + 0x24c]
push edi
call fcn.004352bf
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.005987b0
add esp, 0xc
mov dword [ebx + 0x254], edi
xor edi, edi
cmp dword [ebp - 0x2c], 5
jne 0x476230
cmp dword [ebp - 0x30], edi
jbe 0x476236
mov esi, dword [ebx + 0x248]
sub esi, dword [ebp - 0x30]
je 0x476236
mov eax, dword [ebx + 0x23c]
push dword [ebp - 0x30]
lea ecx, [eax + esi]
push ecx
push eax
call fcn.00590360
add esp, 0xc
sub dword [ebx + 0x248], esi
jmp 0x476236
mov dword [ebx + 0x248], edi
cmp dword [ebp - 0x14], 0x90317
je 0x47627a
cmp dword [ebp - 0x14], edi
jne 0x4762be
cmp byte [ebp + 0xb], 0
je 0x4762af
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 0x476065
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x4762c7
push 2
pop ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x4762c7
push dword [ebp + 0x20]
lea eax, [ebp + 0x18]
push dword [ebp + 0x10]
mov edi, ebx
push eax
call fcn.004762ce
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x18], ecx
je 0x476273
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
lea eax, [ebp + 0x18]
jbe 0x4762a4
and dword [ebp + 0x18], 0
jmp 0x4762ab
mov dword [ebp + 0x18], 2
mov ecx, dword [eax]
jmp 0x476273
mov eax, dword [ebp + 0x1c]
cmp dword [eax], edi
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], edi
ja 0x4762ab
jmp 0x4762a4
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
pop edi
pop esi
pop ebx
leave
ret 0x1c