Function at 0x446a30
Capabilities:
Authenticate hmac

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x88]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jl 0x446b6e
cmp ebp, dword [0x785d70]
jge 0x446b6e
mov eax, ebp
shl eax, 5
sub eax, ebp
lea eax, [eax*4 + 0x785d74]
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x446a76
mov byte [eax + 0x32], 1
mov esi, dword [esp + 0x88]
cmp esi, 9
jl 0x446ef9
cmp esi, 0x10
jg 0x446ef9
cmp dword [esp + 0x80], 0xd
je 0x446ef9
cmp dword [esp + 0x84], 0x96
jl 0x446ab5
mov dword [esp + 0x84], 0x96
mov ax, word [0x775900]
inc ax
cmp ax, 0x7d00
mov word [0x775900], ax
jle 0x446ad2
mov word [0x775900], 1
mov eax, 0x784bd0
add eax, 2
cmp eax, 0x784be0
jl 0x446ad7
mov ecx, 0x784dc4
or eax, 0xffffffff
mov edx, dword [ecx]
cmp edx, eax
je 0x446afb
mov dword [esp + edi*4 + 0x34], edx
mov edx, dword [ecx + 0xc]
mov dword [esp + edi*4 + 0x40], edx
inc edi
add ecx, 4
cmp ecx, 0x784dd0
jl 0x446ae9
mov dword [esp + 0x20], edi
lea edx, [esi - 1]
mov ecx, 8
cmp word [edx*2 + 0x784bc0], ax
jne 0x446b2d
inc edx
cmp edx, 0x10
jl 0x446b27
mov edx, 8
inc ecx
cmp ecx, 0x10
jl 0x446b12
movsx ecx, word [edx*2 + 0x784bc0]
movsx ebx, word [edx*2 + 0x784be0]
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
je 0x446b4d
cmp ebx, eax
jne 0x446b63
movsx ecx, word [0x784c68]
movsx ebx, word [0x784c6a]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x446b77
mov esi, 4
jmp 0x446ba7
mov dword [esp + 0x24], edi
jmp 0x446a76
mov eax, dword [0x784908]
dec eax
cmp ebx, eax
jl 0x446b85
xor esi, esi
jmp 0x446ba7
test ecx, ecx
jne 0x446b90
mov esi, 2
jmp 0x446ba7
mov edx, dword [0x784904]
xor eax, eax
dec edx
cmp ecx, edx
setl al
dec eax
and eax, 2
add eax, 4
mov esi, eax
lea edx, [ebx + ebx*8]
mov dword [esp + 0x88], esi
lea eax, [ebx + edx*2]
mov edx, dword [0xbca2d8]
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
add eax, ecx
cmp ebp, 0x8c
mov dword [esp + 0x28], eax
jne 0x446be0
mov eax, dword [esp + 0x84]
cdq
and edx, 3
add eax, edx
sar eax, 2
jmp 0x446be9
mov edx, dword [esp + 0x24]
xor eax, eax
mov al, byte [edx + 0x36]
xor ebp, ebp
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x446cc3
jmp 0x446c04
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x80], 0xc
jne 0x446c1f
push esi
push ebx
push ecx
push 0x64
push 0
call fcn.004b4800
add esp, 0x14
jmp 0x446c4d
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call fcn.004467a0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
push 0x5d
push 0
call fcn.004b4800
add esp, 0x1c
mov edi, eax
lea ecx, [ebp + ebp*2]
push edi
lea esi, [edi + edi*2]
lea edx, [ebp + ecx*8 + 0xa]
shl esi, 5
add esi, edi
shl esi, 2
mov byte [esi + 0xbcd605], 0
mov byte [esi + 0xbcd630], 8
mov word [esi + 0xbcd62e], dx
call fcn.004b5af0
mov ecx, dword [esp + 0x20]
mov byte [esi + 0xbcd65d], 1
inc ecx
mov byte [esi + 0xbcd66e], 1
push edi
mov dword [esp + 0x24], ecx
mov dword [esi + 0xbcd778], 0
call fcn.00446650
mov al, byte [0x78d7c0]
add esp, 8
mov byte [esi + 0xbcd678], al
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jl 0x446bf9
mov edi, dword [esp + 0x20]
xor edx, edx
xor ebp, ebp
cmp edi, edx
jle 0x446d8f
mov eax, dword [0xd3b1c4]
mov ecx, dword [0xd3b374]
mov dword [eax*4 + 0xd3b1c8], ecx
inc eax
cmp eax, 0x64
mov dword [0xd3b1c4], eax
jl 0x446cf2
mov dword [0xd3b1c4], edx
mov edx, dword [0xd3b384]
mov ecx, dword [0xd3b380]
mov edi, 0x1f
mov eax, edx
mov esi, edx
shr eax, 4
and eax, 1
and esi, 1
xor eax, esi
mov esi, ecx
shr esi, 4
mov ebx, ecx
and esi, 1
and ebx, 1
xor esi, ebx
shr edx, 1
shr ecx, 1
test eax, eax
je 0x446d2f
or edx, 0x40000000
test esi, esi
je 0x446d39
or ecx, 0x40000000
dec edi
jne 0x446d03
mov dword [0xd3b384], edx
mov eax, edx
mov esi, edx
and edx, 7
mov dword [0xd3b378], edx
mov edx, ecx
and edx, 0x7fff
and eax, 0x7fff
mov dword [0xd3b364], edx
mov edx, ecx
and edx, 0x7f
mov dword [0xd3b370], eax
mov dword [0xd3b368], edx
mov dword [0xd3b380], ecx
cdq
and esi, 0x7f
and ecx, 7
idiv dword [esp + 0x20]
mov dword [0xd3b374], esi
mov dword [0xd3b36c], ecx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x44741d
mov ax, word [esp + edx*4 + 0x34]
mov cx, word [esp + edx*4 + 0x40]
mov word [esp + 0x2c], ax
mov word [esp + 0x24], cx
mov eax, dword [esp + 0x84]
cmp eax, 0x10
jl 0x446dce
mov ebx, 0x10
sub eax, ebx
mov dword [esp + 0x84], eax
jmp 0x446de0
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.004467a0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 8
cmp eax, 0xc
mov eax, dword [esp + 0x88]
push eax
push ecx
push edx
jne 0x446e24
push 0x65
jmp 0x446e26
push 0x5c
push 0
call fcn.004b4800
mov edi, eax
mov ax, word [esp + 0x40]
mov cx, word [esp + 0x38]
lea edx, [ebp + ebp*4]
lea esi, [edi + edi*2]
add esp, 0x14
shl esi, 5
add esi, edi
push edi
shl esi, 2
mov word [esi + 0xbcd628], ax
mov word [esi + 0xbcd62a], cx
mov byte [esi + 0xbcd605], 0
lea eax, [edx*8 + 0xa]
mov byte [esi + 0xbcd630], 8
mov word [esi + 0xbcd62e], ax
call fcn.004b5af0
mov byte [esi + 0xbcd65d], 1
mov byte [esi + 0xbcd66e], 1
push edi
mov dword [esi + 0xbcd778], 0
call fcn.004620c0
movsx ecx, word [0x775900]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x94]
mov byte [esi + 0xbcd728], 1
mov dword [esi + 0xbcd764], ebx
mov dword [esi + 0xbcd768], ecx
mov ecx, dword [esp + 0x98]
mov dword [esi + 0xbcd76c], edx
mov dword [esi + 0xbcd770], eax
mov eax, dword [esp + 0x8c]
add esp, 8
inc ebp
mov dword [esi + 0xbcd774], ecx
test eax, eax
jne 0x446db2
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edx, dword [0xe39080]
mov ecx, dword [esp + 0x84]
mov eax, dword [edx*4 + 0x5d19b0]
push eax
push ecx
call fcn.004cde40
mov esi, eax
add esp, 8
cmp esi, 0x96
jl 0x446f26
mov esi, 0x96
mov ax, word [0x775900]
inc ax
cmp ax, 0x7d00
mov word [0x775900], ax
jle 0x446f43
mov word [0x775900], 1
mov eax, dword [esp + 0x80]
sub eax, 0xc
je 0x446f70
dec eax
je 0x446f65
mov eax, dword [0x709a90]
mov edi, dword [0x709a58]
mov ebx, dword [0x709ac8]
jmp 0x446f81
mov eax, dword [0x70a698]
xor ebx, ebx
xor edi, edi
jmp 0x446f81
mov eax, dword [0x709cc0]
mov edi, dword [0x709cf8]
mov ebx, dword [0x709d30]
push eax
push esi
call fcn.004cde40
push edi
push esi
call fcn.004cde40
push ebx
push esi
mov ebp, eax
call fcn.004cde40
mov ebx, eax
xor edx, edx
sub esi, ebx
mov dword [esp + 0x4c], edx
sub esi, ebp
add esp, 0x18
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x38], edx
test esi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], edx
jle 0x447014
cmp esi, 0x10
jg 0x446fcf
mov dword [esp + 0x34], 1
jmp 0x447010
cmp esi, 0x20
jg 0x446feb
mov eax, esi
mov dword [esp + 0x34], 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x50], eax
sub esi, eax
jmp 0x447010
mov eax, 0x55555556
mov dword [esp + 0x34], 3
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
lea ecx, [edx + edx]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
sub esi, ecx
mov dword [esp + 0x4c], esi
test ebp, ebp
jle 0x44706c
cmp ebp, 0x10
jg 0x447027
mov dword [esp + 0x38], 1
jmp 0x447068
cmp ebp, 0x20
jg 0x447043
mov eax, ebp
mov dword [esp + 0x38], 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x60], eax
sub ebp, eax
jmp 0x447068
mov eax, 0x55555556
mov dword [esp + 0x38], 3
imul ebp
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
lea ecx, [edx + edx]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
sub ebp, ecx
mov dword [esp + 0x5c], ebp
test ebx, ebx
jle 0x4470c4
cmp ebx, 0x10
jg 0x44707f
mov dword [esp + 0x3c], 1
jmp 0x4470c0
cmp ebx, 0x20
jg 0x44709b
mov eax, ebx
mov dword [esp + 0x3c], 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x70], eax
sub ebx, eax
jmp 0x4470c0
mov eax, 0x55555556
mov dword [esp + 0x3c], 3
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
lea ecx, [edx + edx]
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
sub ebx, ecx
mov dword [esp + 0x6c], ebx
mov ecx, dword [esp + 0x80]
or eax, 0xffffffff
cmp ecx, 0xb
jne 0x4470e7
movsx edi, word [0x784c64]
movsx esi, word [0x784c66]
mov dword [esp + 0x10], edi
jmp 0x44715f
xor edx, edx
mov ecx, 0x784bc0
cmp word [ecx], ax
je 0x4470f4
inc edx
add ecx, 2
cmp ecx, 0x784bd0
jl 0x4470ee
mov ecx, dword [esp + 0x88]
cmp ecx, 8
jne 0x447130
cmp edx, 2
jg 0x44711b
mov ecx, dword [0xd3b374]
and ecx, 1
jmp 0x447131
mov ecx, dword [0xd3b374]
cmp edx, 4
jg 0x44712b
and ecx, 3
jmp 0x447131
and ecx, 7
jmp 0x447131
dec ecx
xor edx, edx
cmp word [ecx*2 + 0x784bc0], ax
jne 0x44714b
inc ecx
cmp ecx, 8
jl 0x447145
xor ecx, ecx
inc edx
cmp edx, 8
jl 0x447133
movsx edi, word [ecx*2 + 0x784bc0]
movsx esi, word [ecx*2 + 0x784be0]
mov dword [esp + 0x10], edi
cmp edi, eax
mov dword [esp + 0x18], esi
je 0x44716b
cmp esi, eax
jne 0x447181
movsx edi, word [0x784c68]
movsx esi, word [0x784c6a]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
test esi, esi
jne 0x447193
mov ebx, 4
mov dword [esp + 0x88], ebx
jmp 0x4471e1
mov edx, dword [0x784908]
dec edx
cmp esi, edx
jl 0x4471ab
mov dword [esp + 0x88], 0
jmp 0x4471da
test edi, edi
jne 0x4471bc
mov dword [esp + 0x88], 2
jmp 0x4471da
mov ecx, dword [0x784904]
lea edx, [ecx - 1]
xor ecx, ecx
cmp edi, edx
setl cl
dec ecx
and ecx, 2
add ecx, 4
mov dword [esp + 0x88], ecx
mov ebx, dword [esp + 0x88]
lea ecx, [esi + esi*8]
lea ecx, [esi + ecx*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [0xbca2d8]
lea edx, [ecx + edx*4]
add edx, edi
mov dword [esp + 0x28], edx
mov ecx, dword [edx*4 + 0xaf598c]
test ecx, 0x203
jne 0x447421
test cl, 4
je 0x44721e
test cl, 0x40
jne 0x447231
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test ecx, 0xc108
je 0x447231
push edx
push esi
push edi
call fcn.00469140
add esp, 0xc
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + edx*4 + 0x34]
test ecx, ecx
jle 0x44740b
mov eax, dword [esp + 0x80]
sub eax, 0xc
je 0x44729e
dec eax
je 0x447289
mov eax, edx
dec eax
je 0x44727c
dec eax
je 0x44726f
mov dword [esp + 0x84], 0x2c
jmp 0x4472cd
mov dword [esp + 0x84], 0x2d
jmp 0x4472cd
mov dword [esp + 0x84], 0x2b
jmp 0x4472cd
mov dword [esp + 0x84], 0x63
mov dword [esp + 0x14], 8
jmp 0x4472d5
mov eax, dword [esp + 0x20]
dec eax
je 0x4472c2
dec eax
je 0x4472b5
mov dword [esp + 0x84], 0x36
jmp 0x4472cd
mov dword [esp + 0x84], 0x38
jmp 0x4472cd
mov dword [esp + 0x84], 0x37
mov dword [esp + 0x14], 0xa
test ecx, ecx
jle 0x44740b
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
shl eax, 4
lea edx, [esp + eax + 0x4c]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
push esi
push edi
push ebx
push eax
push ecx
call fcn.004b6ff0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jle 0x4473f1
mov dx, word [esp + 0x8c]
mov cl, byte [esp + 0x80]
lea eax, [ebp + ebp*8]
xor edi, edi
shl eax, 4
mov word [eax + 0xbcba0c], dx
mov dx, word [esp + 0x90]
mov byte [eax + 0xbcba39], bl
mov byte [eax + 0xbcba32], cl
mov cx, word [0x775900]
mov word [eax + 0xbcba40], dx
mov edx, dword [esp + 0x24]
mov word [eax + 0xbcba50], cx
mov ebx, dword [edx]
test ebx, ebx
jle 0x4473d9
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
push 0
call fcn.004b4800
mov edx, dword [esp + 0x44]
lea esi, [eax + eax*2]
shl esi, 5
add esi, eax
lea ecx, [edi + edx*4 + 1]
shl esi, 2
lea ecx, [ecx + ecx*4]
push eax
mov byte [esi + 0xbcd605], 0
mov byte [esi + 0xbcd630], 9
shl ecx, 1
mov word [esi + 0xbcd62e], cx
mov word [esi + 0xbcd658], bp
call fcn.004b5af0
add esp, 0x18
inc edi
cmp edi, ebx
mov byte [esi + 0xbcd65d], 1
jl 0x44736f
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add ecx, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
jne 0x4472f0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x44723b
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret