Function at 0x522c40
Capabilities:
Authenticate hmac

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x522f13
sub esp, 0x24
lea eax, [0x802680]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x522ef6
mov dword [edx + 0x24], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x28], ecx
mov ebp, dword [0xb92b90]
test ebp, ebp
jne 0x522ee9
mov dword [ebx + 0x2c], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
mov eax, dword [eax + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov dword [esp + 8], eax
lea edx, [0x7b4b60]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00438a20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x522eda
mov dword [ebx + 0x14], edx
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
lea ecx, [0x7b4b60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00438a20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [0xb92b90]
test eax, eax
jne 0x522ecb
mov dword [ebx + 8], edx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jg 0x522e6e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x14]
mov ebp, dword [ebx + 0x18]
cmp ebp, ecx
jle 0x522e63
mov ebp, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], eax
cmp eax, edx
je 0x522da4
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0044d190
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
jle 0x522e5c
mov ecx, dword [esp + 0x2c]
cmp edx, ecx
je 0x522dd2
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0044d190
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
xor edx, edx
jmp 0x522de9
movzx ebx, byte [edx + ebp]
xor ebx, 0x36
mov byte [ebp + edx], bl
inc edx
cmp edx, ecx
jge 0x522dfc
mov ebx, dword [eax + 0x18]
mov ebp, dword [eax + 0x14]
cmp edx, ebx
jb 0x522ddd
jmp 0x522f0c
mov ecx, dword [eax + 0xc]
xor edx, edx
jmp 0x522e10
movzx ebp, byte [edx + ebx]
xor ebp, 0x5c
xchg ebp, eax
mov byte [ebx + edx], al
xchg ebp, eax
inc edx
cmp edx, ecx
jge 0x522e23
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
cmp edx, ebp
jb 0x522e03
jmp 0x522f05
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov ecx, dword [ecx + 0x20]
mov ebx, dword [eax + 0x18]
mov ebp, dword [eax + 0x1c]
mov esi, dword [eax + 0x14]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp], edx
call ecx
lea eax, [0x8b5b40]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
add esp, 0x24
ret
mov ebx, ecx
jmp 0x522dba
mov esi, ebp
mov ebp, ecx
mov ecx, esi
jmp 0x522d88
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov eax, dword [eax + 0x20]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], edx
call ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
jmp 0x522d78
lea edi, [ebx + 8]
mov eax, edx
call fcn.0044c990
jmp 0x522d65
lea edi, [ebx + 0x14]
mov eax, edx
call fcn.0044c990
jmp 0x522d25
lea edi, [ebx + 0x2c]
call fcn.0044c990
jmp 0x522cbd
lea edi, [edx + 0x24]
mov eax, ecx
call fcn.0044c990
jmp 0x522c96
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.0044b230
jmp fcn.00522c40