Function at 0x509630
Capabilities:
Authenticate hmac

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5098f0
sub esp, 0x24
lea eax, [0x6681e0]
mov dword [esp], eax
call fcn.00409a20
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 [0x8a6100]
test eax, eax
jne 0x5098d3
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 [0x8a6100]
test ebp, ebp
jne 0x5098c6
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
lea edx, [0x640f20]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], edx
mov edx, dword [0x8a6100]
test edx, edx
jne 0x5098b9
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 4]
lea edx, [0x640f20]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438de0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], edx
mov edx, dword [0x8a6100]
test edx, edx
jne 0x5098ac
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
cmp dword [ecx + 4], eax
jl 0x50984f
mov edx, dword [esp + 0x2c]
mov ebx, dword [ecx + 0x14]
mov ebp, dword [ecx + 0x18]
cmp ebp, eax
jle 0x509844
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], edx
cmp edx, ebx
je 0x509788
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0044d890
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x1c]
cmp edx, ebx
jle 0x50983d
mov edx, dword [esp + 0x2c]
cmp ecx, edx
je 0x5097b6
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0044d890
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
xor edx, edx
jmp 0x5097ce
movzx ebp, byte [edx + ebx]
xor ebp, 0x36
xchg ebp, eax
mov byte [ebx + edx], al
xchg ebp, eax
inc edx
cmp edx, ecx
jge 0x5097df
mov ebx, dword [eax + 0x14]
cmp dword [eax + 0x18], edx
ja 0x5097c1
jmp 0x5098e9
mov ecx, dword [eax + 0xc]
xor edx, edx
jmp 0x5097f3
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 0x509804
mov ebx, dword [eax + 8]
cmp dword [eax + 0xc], edx
ja 0x5097e6
jmp 0x5098e2
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
mov ecx, dword [ecx + 0x20]
mov ebx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call ecx
lea eax, [0x6e8ca0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
add esp, 0x24
ret
mov ebx, edx
jmp 0x50979e
mov esi, ebp
mov ebp, eax
mov eax, esi
jmp 0x50976c
mov edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
mov edx, dword [edx + 0x20]
mov dword [esp], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
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 + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
jmp 0x50975c
lea edi, [ecx + 8]
call fcn.0044d090
jmp 0x50974b
lea edi, [ecx + 0x14]
call fcn.0044d090
jmp 0x509710
lea edi, [ebx + 0x2c]
call fcn.0044d090
jmp 0x5096ad
lea edi, [edx + 0x24]
mov eax, ecx
call fcn.0044d090
jmp 0x509686
call fcn.00427150
ud2
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.00509630