Function at 0x101b8f20
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138
call fcn.10010a90
mov eax, dword [0x1023d1bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x9c], 0
cmp dword [ebp + 0x14], 0
je 0x101b8f6e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [eax]
je 0x101b8f6e
cmp dword [ebp + 0xc], 0
je 0x101b8f67
cmp dword [ebp + 0x10], 0
jge 0x101b8f6e
xor eax, eax
jmp 0x101b9222
cmp dword [ebp + 0x14], 0
je 0x101b8f7e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
jmp 0x101b8f97
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x101b8f90
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp + 0x14], eax
jmp 0x101b8f97
xor eax, eax
jmp 0x101b9222
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.10049fa0
add esp, 4
and eax, 2
je 0x101b8faf
xor eax, eax
jmp 0x101b9222
cmp dword [ebp + 0xc], 0
je 0x101b91c5
mov dword [ebp - 0x9c], 1
mov edx, dword [ebp + 0x14]
push edx
call fcn.10039d10
add esp, 4
mov dword [ebp - 0x138], eax
xor eax, eax
cmp dword [ebp - 0x138], 0x90
setle al
test eax, eax
jne 0x101b8fef
xor eax, eax
jmp 0x101b9222
cmp dword [ebp - 0x138], 0
jge 0x101b8fff
xor eax, eax
jmp 0x101b9222
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp + 0x10]
jge 0x101b906a
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x101b9061
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.10037290
add esp, 0xc
test eax, eax
je 0x101b9061
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.10037460
add esp, 0xc
test eax, eax
jne 0x101b9068
xor eax, eax
jmp 0x101b9222
jmp 0x101b90a0
cmp dword [ebp + 0x10], 0
jl 0x101b9079
cmp dword [ebp + 0x10], 0x90
jle 0x101b9080
xor eax, eax
jmp 0x101b9222
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x98]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x90
je 0x101b90d0
mov eax, 0x90
sub eax, dword [ebp - 0xa0]
push eax
push 0
mov ecx, dword [ebp - 0xa0]
lea edx, [ebp + ecx - 0x98]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x101b90e2
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x90
jge 0x101b9105
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x98]
xor edx, 0x36
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x130], dl
jmp 0x101b90d9
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x101b9147
mov edx, dword [ebp + 0x14]
push edx
call fcn.10039d10
add esp, 4
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.10037290
add esp, 0xc
test eax, eax
jne 0x101b914c
jmp 0x101b91eb
mov dword [ebp - 4], 0
jmp 0x101b915e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x90
jge 0x101b9181
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x98]
xor edx, 0x5c
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x130], dl
jmp 0x101b9155
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.10037270
add esp, 0xc
test eax, eax
je 0x101b91c3
mov edx, dword [ebp + 0x14]
push edx
call fcn.10039d10
add esp, 4
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.10037290
add esp, 0xc
test eax, eax
jne 0x101b91c5
jmp 0x101b91eb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.10037890
add esp, 8
test eax, eax
jne 0x101b91e1
jmp 0x101b91eb
mov dword [ebp - 0x134], 1
cmp dword [ebp - 0x9c], 0
je 0x101b921c
push 0x90
lea ecx, [ebp - 0x98]
push ecx
call fcn.100679f0
add esp, 8
push 0x90
lea edx, [ebp - 0x130]
push edx
call fcn.100679f0
add esp, 8
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10010588
mov esp, ebp
pop ebp
ret