Function at 0x5d8850
Capabilities:
Authenticate hmac

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d8b07
sub esp, 0x30
lea eax, [0x67cd00]
mov dword [esp], eax
call fcn.0040c260
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 4]
mov dword [esp + 0x28], ecx
call eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x18], eax
mov eax, dword [0x85d680]
test eax, eax
je 0x5d88aa
call fcn.00468040
mov dword [edi], ecx
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, eax
call ecx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [0x85d680]
test eax, eax
je 0x5d88dc
call fcn.00468040
mov dword [edi], ecx
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], eax
mov dword [ebx + 0x24], ecx
mov byte [esp + 0x1f], 1
mov dword [esp], ebx
lea eax, [esp + 0x1f]
mov dword [esp + 4], eax
call fcn.005d8b20
movzx eax, byte [esp + 0x1f]
test al, al
je 0x5d8aee
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x662020]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.0044d740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x5d8956
call fcn.00468040
mov dword [edi], eax
mov ebx, dword [edx + 0xc]
mov dword [edi + 4], ebx
mov dword [edx + 0xc], eax
lea eax, [0x662020]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044d740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x5d8997
call fcn.00468040
mov dword [edi], eax
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], eax
mov ebx, dword [esp + 0x3c]
cmp ebx, ecx
jg 0x5d89a7
mov eax, dword [esp + 0x38]
jmp 0x5d8a01
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov ecx, dword [ecx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ebx, ecx
mov ebp, dword [edx + 0x10]
cmp ebx, ebp
jge 0x5d8a0c
mov ecx, ebx
jmp 0x5d8a10
mov ecx, ebx
mov ebx, ebp
mov ebp, dword [edx + 0xc]
cmp eax, ebp
je 0x5d8a3b
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00468970
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [edx + 4]
cmp ecx, ebx
jl 0x5d8a44
mov ecx, ebx
mov ebx, dword [edx]
cmp eax, ebx
je 0x5d8a5e
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00468970
mov edx, dword [esp + 0x28]
mov ebx, dword [edx + 0x10]
xor eax, eax
jmp 0x5d8a78
mov ebp, dword [edx + 0xc]
movzx esi, byte [eax + ebp]
xor esi, 0x36
xchg esi, ebx
mov byte [ebp + eax], bl
xchg esi, ebx
inc eax
cmp eax, ebx
jge 0x5d8a85
mov ecx, dword [edx + 0x10]
cmp eax, ecx
jb 0x5d8a65
jmp 0x5d8ae9
mov ebx, dword [edx + 4]
xor eax, eax
jmp 0x5d8a9e
mov ebp, dword [edx]
movzx esi, byte [eax + ebp]
xor esi, 0x5c
xchg esi, ebx
mov byte [ebp + eax], bl
xchg esi, ebx
inc eax
cmp eax, ebx
jge 0x5d8aab
mov ecx, dword [edx + 4]
cmp eax, ecx
jb 0x5d8a8c
jmp 0x5d8ae4
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov eax, dword [eax + 0x20]
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call eax
lea eax, [0x6f2d64]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
add esp, 0x30
ret
call fcn.00468090
call fcn.00468090
lea eax, [0x661ce0]
mov dword [esp], eax
lea eax, [0x6f1878]
mov dword [esp + 4], eax
call fcn.00437e60
nop
call fcn.00466c30
jmp fcn.005d8850