Function at 0x59a640
Capabilities:
Authenticate hmac

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59a8c9
sub esp, 0x30
lea eax, [0x69d100]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x18], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x59a694
mov dword [edx + 0x1c], eax
jmp 0x59a69c
lea edi, [edx + 0x1c]
call fcn.0045f670
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x20], ecx
mov ecx, dword [0xa43e50]
test ecx, ecx
jne 0x59a6c1
mov dword [ebx + 0x24], eax
jmp 0x59a6c9
lea edi, [ebx + 0x24]
call fcn.0045f670
mov byte [esp + 0x1f], 1
mov dword [esp], ebx
lea eax, [esp + 0x1f]
mov dword [esp + 4], eax
call fcn.0059a8e0
movzx eax, byte [esp + 0x1f]
test al, al
je 0x59a8b0
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, [0x67e920]
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00447740
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 [0xa43e50]
test ebx, ebx
jne 0x59a738
mov dword [edx + 0xc], eax
jmp 0x59a740
lea edi, [edx + 0xc]
call fcn.0045f670
lea eax, [0x67e920]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov edx, dword [0xa43e50]
test edx, edx
jne 0x59a776
mov dword [edi], eax
jmp 0x59a77b
call fcn.0045f670
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jg 0x59a789
mov ecx, dword [esp + 0x38]
jmp 0x59a7e7
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x20]
mov dword [esp], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
call ecx
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 edi, dword [esp + 0x28]
mov edx, eax
mov eax, ecx
mov ecx, edx
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
cmp eax, ebx
jge 0x59a7f5
mov ebx, eax
jmp 0x59a7fb
mov ebp, ebx
mov ebx, eax
mov eax, ebp
cmp ecx, edx
je 0x59a823
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0045fe60
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
mov edx, dword [edi + 4]
cmp ebx, edx
jl 0x59a82e
mov ebx, edx
cmp ecx, eax
je 0x59a846
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0045fe60
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x10]
xor ecx, ecx
jmp 0x59a85b
mov edx, dword [edi + 0xc]
movzx ebx, byte [ecx + edx]
xor ebx, 0x36
mov byte [edx + ecx], bl
inc ecx
cmp ecx, eax
jl 0x59a84d
mov eax, dword [edi + 4]
xor ecx, ecx
jmp 0x59a873
mov edx, dword [edi]
movzx ebx, byte [ecx + edx]
xor ebx, 0x5c
mov byte [edx + ecx], bl
inc ecx
cmp ecx, eax
jl 0x59a866
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov eax, dword [eax + 0x20]
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call eax
lea eax, [0x896a54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
add esp, 0x30
ret
lea eax, [0x67e720]
mov dword [esp], eax
lea eax, [0x894d90]
mov dword [esp + 4], eax
call fcn.00433690
nop
call fcn.0045e260
jmp fcn.0059a640