Function at 0x47ef70
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd459
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x6e8794]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
call fcn.00415620
mov dword [ebp - 0x1a8], 0x40
cmp dword [ebp + 0x18], 3
jne 0x47efbd
mov dword [ebp - 0x1a8], 0x80
lea ecx, [ebp - 0x1a4]
call fcn.00416090
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x1a8]
jle 0x47f012
lea ecx, [ebp - 0x1a4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00437b40
add esp, 0x10
lea ecx, [ebp - 0x1a4]
call fcn.0042d6b0
mov dword [ebp + 0x10], eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.00437ad0
add esp, 4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x1a8]
jle 0x47f026
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 0x1a8]
push edx
push 0
lea eax, [ebp - 0x144]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1a8]
push ecx
push 0
lea edx, [ebp - 0xbc]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x144]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xbc]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x47f096
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x1a8]
jge 0x47f0d3
mov edx, dword [ebp - 0x30]
movzx eax, byte [ebp + edx - 0x144]
xor eax, 0x36
mov ecx, dword [ebp - 0x30]
mov byte [ebp + ecx - 0x144], al
mov edx, dword [ebp - 0x30]
movzx eax, byte [ebp + edx - 0xbc]
xor eax, 0x5c
mov ecx, dword [ebp - 0x30]
mov byte [ebp + ecx - 0xbc], al
jmp 0x47f08d
lea ecx, [ebp - 0x164]
call fcn.00416090
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1a8]
push edx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x164]
call fcn.004185a0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x164]
call fcn.004185a0
lea ecx, [ebp - 0x2c]
call fcn.00416090
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x164]
call fcn.004f8fa0
push eax
lea ecx, [ebp - 0x164]
call fcn.0042d6b0
push eax
call fcn.00437b40
add esp, 0x10
lea ecx, [ebp - 0x184]
call fcn.00416090
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1a8]
push edx
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x184]
call fcn.004185a0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x184]
call fcn.00415790
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x184]
call fcn.004f8fa0
push eax
lea ecx, [ebp - 0x184]
call fcn.0042d6b0
push eax
call fcn.00437b40
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x184]
call fcn.004179c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004179c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.004179c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.004179c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.005c4d04
mov esp, ebp
pop ebp
ret