Function at 0x4c4980
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
cmp dword [0x8240e4], 0
jne 0x4c4996
xor eax, eax
jmp 0x4c49a9
lea eax, [ebp - 4]
push eax
push 7
push str.CCrypto::GenerateHMAC
call fcn.0053be40
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
jne 0x4c49ce
push str.pubData
push 0xca
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommoncrypto_digest_openssl.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c49ce
int3
cmp dword [ebp + 0xc], 0
ja 0x4c49f0
push str.cubData___0
push 0xcb
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommoncrypto_digest_openssl.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c49f0
int3
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x4c4a16
push str.pubKey
push 0xcc
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommoncrypto_digest_openssl.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c4a16
int3
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4c4a39
push str.cubKey___0
push 0xcd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommoncrypto_digest_openssl.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c4a39
int3
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x4c4a5c
push str.pOutputDigest
push 0xce
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommoncrypto_digest_openssl.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c4a5c
int3
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0054f880
add esp, 0xc
cmp esi, 0x40
jbe 0x4c4ad1
lea eax, [ebp - 0x158]
push eax
call fcn.005ea4b0
push esi
lea eax, [ebp - 0x158]
push edi
push eax
call fcn.005ea510
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005ea370
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov dword [ebp - 0x58], eax
mov ecx, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x18]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4c4ac4
jmp 0x4c4adf
push esi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0054f300
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call fcn.005ea4b0
lea eax, [ebp - 0xf8]
push eax
call fcn.005ea4b0
add esp, 8
xor ecx, ecx
lea esp, [esp]
mov al, byte [ebp + ecx - 0x58]
xor al, 0x36
mov byte [ebp + ecx - 0x98], al
inc ecx
cmp ecx, 0x40
jl 0x4c4b00
push 0x40
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.005ea510
add esp, 0xc
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [ebp + ecx - 0x58]
xor al, 0x5c
mov byte [ebp + ecx - 0x98], al
inc ecx
cmp ecx, 0x40
jl 0x4c4b30
push 0x40
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.005ea510
add esp, 0xc
lea eax, [ebp - 0x98]
mov ecx, 0x40
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4c4b66
mov ecx, 0x40
lea eax, [ebp - 0x58]
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4c4b80
push dword [ebp + 0xc]
lea eax, [ebp - 0x158]
push dword [ebp + 8]
push eax
call fcn.005ea510
lea eax, [ebp - 0x158]
push eax
push ebx
call fcn.005ea370
push 0x14
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.005ea510
lea eax, [ebp - 0xf8]
push eax
push ebx
call fcn.005ea370
add esp, 0x28
lea eax, [ebp - 0x158]
mov ecx, 0xc0
pop edi
pop esi
pop ebx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4c4bd7
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c4bf2
push eax
call fcn.0053be00
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret