Function at 0x54d840
Capabilities:
Decrypt data via sspi
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
or ecx, 0xffffffff
cmp dword [ebp + 0x24], ecx
push esi
push edi
mov dword [eax], ebx
je 0x54d860
cmp dword [ebp + 0x28], ecx
jne 0x54d893
mov ecx, dword [esp + 0x70]
mov edx, dword [ebp + 0x20]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x8c]
mov eax, esp
mov dword [eax], edx
call fcn.00543140
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c
mov esi, dword [ebp + 0x18]
cmp esi, ebx
jbe 0x54d8e6
mov edi, dword [esp + 0x74]
cmp esi, edi
jb 0x54d8a4
mov esi, edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x70]
push esi
add ecx, eax
push ecx
push edx
call fcn.006a4bd0
mov eax, dword [esp + 0x84]
sub edi, esi
add esp, 0xc
sub dword [ebp + 0x18], esi
mov dword [eax], esi
mov dword [esp + 0x74], edi
je 0x54d8d2
add dword [ebp + 0x1c], esi
cmp edi, ebx
jne 0x54d8e6
mov eax, dword [esp + 0x68]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c
mov esi, dword [esp + 0x6c]
cmp dword [ebp + 0xc], ebx
mov edx, dword [esi]
mov eax, dword [edx]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, esi
sete byte [esp + 0x64]
mov byte [esp + 0x17], bl
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], ebx
call eax
test al, al
jne 0x54db3e
lea ebx, [ebx]
cmp byte [esp + 0x64], bl
je 0x54d9d1
cmp dword [ebp + 0x18], ebx
jbe 0x54d935
mov dword [esp + 0x18], ebx
jmp 0x54d96e
cmp dword [ebp + 0xc], ebx
jbe 0x54d940
mov dword [esp + 0x18], ebx
jmp 0x54d96e
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xffffffff
je 0x54db52
mov edx, dword [esp + 0x7c]
push edx
push ecx
mov eax, esp
mov dword [eax], ecx
lea eax, [esp + 0x20]
push eax
mov edi, esi
call fcn.00543070
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x54db9e
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
mov edx, eax
je 0x54d9c4
mov eax, dword [ebp]
lea edi, [esp + 0x64]
push edi
add ecx, eax
push edx
push ecx
push ecx
mov ecx, dword [ebp + 0x20]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov edi, esi
lea esi, [esp + 0x30]
mov dword [esp + 0x74], ebx
call fcn.00543140
mov eax, dword [eax]
cmp eax, 1
mov dword [esp + 0x18], eax
je 0x54db3e
cmp eax, 2
jne 0x54d9bd
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x64]
add dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], ebx
je 0x54dbae
mov esi, dword [esp + 0x6c]
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], eax
push edx
lea eax, [ebp + 0x24]
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
call sub.Secur32.dll_DecryptMessage
mov edi, eax
cmp edi, 0x80090318
mov dword [esp + 0x1c], edi
jne 0x54da3d
cmp byte [esp + 0x17], bl
jne 0x54dbae
mov byte [esp + 0x64], 1
jmp 0x54db2e
cmp edi, ebx
mov byte [esp + 0x64], bl
jne 0x54dad9
cmp dword [esp + 0x40], 1
jne 0x54dad9
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x54da63
mov byte [esp + 0x64], 1
jmp 0x54dad9
mov edi, dword [esp + 0x74]
cmp eax, edi
jae 0x54da6d
mov edi, eax
mov eax, dword [esp + 0x78]
mov esi, dword [eax]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
push edi
push ecx
lea eax, [esi + edx]
push eax
call fcn.006a4bd0
mov ecx, dword [esp + 0x84]
sub dword [esp + 0x80], edi
add esi, edi
mov dword [ecx], esi
mov esi, dword [esp + 0x48]
add esp, 0xc
sub esi, edi
je 0x54dad5
mov edx, dword [ebp + 0x10]
push edx
call fcn.0069c8fa
add esp, 4
push esi
call fcn.0069c0de
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x10]
add esp, 4
push esi
add edi, eax
push edi
push ecx
mov dword [ebp + 0x1c], ebx
call fcn.006a4bd0
add esp, 0xc
mov dword [ebp + 0x18], esi
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x58], 5
jne 0x54db05
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
jbe 0x54db08
mov esi, dword [ebp + 0xc]
sub esi, ecx
je 0x54db08
mov eax, dword [ebp]
push ecx
lea edx, [eax + esi]
push edx
push eax
call fcn.0069e350
add esp, 0xc
sub dword [ebp + 0xc], esi
jmp 0x54db08
mov dword [ebp + 0xc], ebx
cmp edi, 0x90317
je 0x54db67
cmp edi, ebx
jne 0x54dbb6
cmp byte [esp + 0x64], bl
je 0x54dbae
cmp dword [ebp + 0xc], ebx
mov esi, dword [esp + 0x6c]
sete byte [esp + 0x64]
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
je 0x54d920
mov eax, dword [esp + 0x68]
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c
mov eax, dword [esp + 0x68]
mov ecx, 2
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
mov edi, ebp
call fcn.0054dbd0
cmp dword [esp + 0x74], 1
je 0x54db3e
mov eax, dword [esp + 0x78]
cmp dword [eax], ebx
lea eax, [esp + 0x74]
mov dword [esp + 0x74], ebx
ja 0x54db9c
mov dword [esp + 0x74], 2
mov ecx, dword [eax]
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x1c
mov edx, dword [esp + 0x78]
cmp dword [edx], ebx
jmp 0x54db8a
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword [eax], 2
pop ebx
add esp, 0x50
ret 0x1c