Function at 0x494060
Capabilities:
Encode data using base64
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov eax, 0xfffffdf5
cmp byte [ebx + 0x20], 0
jne 0x4947fc
mov edi, dword [esp + 0x48]
cmp byte [ebx + 0x22c], 0
je 0x4941f7
mov eax, dword [ebx + 0x228]
mov byte [ebx + 0x22c], 0
mov dword [ebx + 0x228], 0xffffffff
mov ecx, dword [ebx + 0x18]
cmp ecx, eax
jbe 0x494154
cmp eax, 0x1e
ja 0x4940bf
or al, 0x20
mov byte [esp + 0x10], al
mov ecx, 1
jmp 0x49413a
add eax, 0xffffffe1
cmp eax, 0x80
jb 0x49412a
mov ecx, 2
mov esi, eax
mov edx, eax
nop word cs:[eax + eax]
shr edx, 7
inc ecx
cmp esi, 0x3fff
mov esi, edx
ja 0x4940e0
lea edx, [ecx - 2]
cmp edx, 0xf
jae 0x494196
mov esi, ebx
mov byte [esp + 0x10], 0x3f
lea edx, [esp + 0x11]
nop word cs:[eax + eax]
mov ebx, eax
mov ebp, eax
or al, 0x80
mov byte [edx], al
mov eax, ebp
shr eax, 7
inc edx
cmp ebx, 0x3fff
ja 0x494110
mov ebx, esi
jmp 0x494138
mov byte [esp + 0x10], 0x3f
mov ecx, 2
lea edx, [esp + 0x11]
mov byte [edx], al
lea eax, [esp + 0x10]
push ecx
push eax
push edi
call fcn.0049d300
add esp, 0xc
test eax, eax
jne 0x4941ee
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x1e
ja 0x494167
or cl, 0x20
mov byte [esp + 0x10], cl
mov eax, 1
jmp 0x4941db
add ecx, 0xffffffe1
cmp ecx, 0x80
jb 0x49419d
mov eax, 2
mov esi, ecx
mov edx, ecx
nop dword [eax + eax]
shr edx, 7
inc eax
cmp esi, 0x3fff
mov esi, edx
ja 0x494180
lea edx, [eax - 2]
cmp edx, 0xf
jb 0x4941ad
mov eax, 0xfffffdf5
jmp 0x4941ee
mov byte [esp + 0x10], 0x3f
mov eax, 2
lea edx, [esp + 0x11]
jmp 0x4941d9
mov esi, ebx
mov byte [esp + 0x10], 0x3f
lea edx, [esp + 0x11]
nop dword [eax + eax]
mov ebx, ecx
mov ebp, ecx
or cl, 0x80
mov byte [edx], cl
mov ecx, ebp
shr ecx, 7
inc edx
cmp ebx, 0x3fff
ja 0x4941c0
mov ebx, esi
mov byte [edx], cl
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
call fcn.0049d300
add esp, 0xc
test eax, eax
je 0x4941f7
mov byte [ebx + 0x20], 1
jmp 0x4947fc
cmp dword [esp + 0x50], 0
je 0x4947fa
lea eax, [ebx + 0x24]
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x494238
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push dword [esp + 8]
push ebp
call fcn.00496300
add esp, 8
test eax, eax
jne 0x4941ee
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x50]
je 0x4947fa
mov dword [esp + 0x2c], eax
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + eax*4]
mov dword [esp], edx
mov ebp, dword [ebx + 0x10]
mov esi, dword [ecx + eax*4]
mov edi, dword [ecx + eax*4 + 8]
mov ecx, esi
mov edx, edi
call fcn.00496940
cmp eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
je 0x4942a0
xor edi, edi
cmp eax, 0x3c
ja 0x494340
mov ecx, dword [esp + 4]
mov eax, ecx
shl eax, 6
mov edi, dword [eax + ecx*4 + 0x90e274]
jmp 0x494340
test edi, edi
je 0x4942b2
cmp edi, 4
jae 0x4942bf
mov edi, 0x811c9dc5
xor eax, eax
jmp 0x49430a
mov edi, 0x811c9dc5
mov ebp, dword [esp]
jmp 0x49435c
mov ecx, edi
and ecx, 0xfffffffc
mov edi, 0x811c9dc5
xor eax, eax
mov ebx, dword [esp + 0x20]
nop
movzx edx, byte [ebx + eax]
xor edx, edi
imul edx, edx, 0x1000193
movzx esi, byte [ebx + eax + 1]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ebx + eax + 2]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ebx + eax + 3]
xor esi, edx
imul edi, esi, 0x1000193
add eax, 4
cmp ecx, eax
jne 0x4942d0
mov ecx, dword [esp + 0xc]
and ecx, 3
mov ebx, dword [esp + 0x44]
je 0x494340
add eax, dword [esp + 0x20]
xor edx, edx
nop dword [eax]
movzx esi, byte [eax + edx]
xor esi, edi
imul edi, esi, 0x1000193
inc edx
cmp ecx, edx
jne 0x494320
nop word cs:[eax + eax]
mov edx, 2
mov eax, dword [esp + 4]
cmp eax, 0x16
je 0x4943a0
cmp eax, 0x1f
mov ebp, dword [esp]
jne 0x49435c
cmp dword [ebp + 0xc], 0x14
jb case.0x494374.3
mov edx, 2
test byte [ebp + 0x10], 1
jne case.0x494374.3
add eax, 0xfffffffd
cmp eax, 0x33
ja case.0x494374.4
mov edx, 1
jmp dword [eax*4 + 0x90de00]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
add eax, ecx
add eax, 0x20
mov ecx, dword [ebx + 0x18]
lea ecx, [ecx + ecx*2]
shr ecx, 2
xor edx, edx
cmp eax, ecx
seta dl
jmp case.0x494374.3
mov ebp, dword [esp]
mov dword [esp + 8], edx
mov eax, edi
and eax, 0x7f
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + eax*4]
xor ebx, ebx
test esi, esi
je 0x4943e0
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x4943f0
cmp dword [esp + 8], 2
jne 0x494575
nop dword [eax]
cmp dword [esi + 8], edx
je 0x49443c
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4943d0
jmp 0x494440
mov edx, dword [esp + 4]
jmp 0x494440
cmp dword [esp + 8], 2
je 0x494407
xor ebx, ebx
jmp 0x49451b
mov esi, dword [esi + 0x24]
test esi, esi
je 0x494440
cmp dword [esi + 8], 0xffffffff
jne 0x494400
cmp dword [esi + 0x2c], edi
jne 0x494400
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x494400
push dword [esp + 0xc]
push dword [esp + 0x24]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x494400
mov ebx, esi
nop
cmp edx, 0x3c
ja 0x4944d0
cmp dword [esp + 8], 2
je 0x494210
mov eax, edx
shl eax, 6
lea esi, [eax + edx*4]
add esi, 0x90e250
mov ebx, edx
jmp 0x49447d
inc ebx
add esi, 0x44
cmp ebx, 0x3d
je 0x49464a
cmp dword [esi + 0x20], edx
jne 0x49464a
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0xc]
jne 0x494470
push eax
push dword [ebp + 4]
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x494470
mov esi, dword [esp + 0x48]
lea eax, [ebx + 1]
cmp eax, 0x7e
ja 0x4945e1
or al, 0x80
mov byte [esp + 0x10], al
mov ecx, 1
jmp 0x4947da
test ebx, ebx
je 0x494692
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x28]
not ecx
lea esi, [eax + ecx]
add esi, 0x3d
mov eax, dword [esp + 8]
test eax, eax
je 0x494658
mov ebx, dword [esp + 0x44]
jmp 0x494761
mov ebp, dword [esp]
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
mov esi, dword [esi + 0x24]
test esi, esi
je 0x494440
cmp dword [esi + 8], 0xffffffff
jne 0x494510
cmp dword [esi + 0x2c], edi
jne 0x494510
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x494510
push ecx
push dword [esp + 0x24]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4944ff
test ebx, ebx
cmove ebx, esi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
mov ebp, dword [esp]
cmp ecx, dword [ebp + 0xc]
jne 0x494502
push ecx
push dword [ebp + 4]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov edx, dword [esp + 4]
jne 0x494510
jmp 0x4945bf
xor ebx, ebx
jmp 0x49458f
mov edx, dword [esp + 4]
mov esi, dword [esi + 0x24]
test esi, esi
je 0x494440
cmp dword [esi + 8], edx
jne 0x494584
test ebx, ebx
cmove ebx, esi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp + 0xc]
jne 0x494580
push ecx
push dword [ebp + 4]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov edx, dword [esp + 4]
jne 0x494584
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x28]
not ecx
lea ebx, [eax + ecx]
add ebx, 0x3d
mov esi, dword [esp + 0x48]
lea eax, [ebx + 1]
cmp eax, 0x7e
jbe 0x4944b8
add ebx, 0xffffff82
cmp ebx, 0x80
jb 0x4947ca
mov ecx, 2
mov edx, ebx
mov eax, ebx
nop dword [eax]
shr eax, 7
inc ecx
cmp edx, 0x3fff
mov edx, eax
ja 0x494600
lea edx, [ecx - 2]
mov eax, 0xfffffdf5
cmp edx, 0xe
ja 0x4947e9
mov byte [esp + 0x10], 0xff
lea eax, [esp + 0x11]
nop dword [eax + eax]
mov edi, ebx
mov edx, ebx
or dl, 0x80
mov byte [eax], dl
shr ebx, 7
inc eax
cmp edi, 0x3fff
ja 0x494630
jmp 0x4947d8
mov esi, edx
mov eax, dword [esp + 8]
test eax, eax
jne 0x4944f6
cmp esi, 0xffffffff
mov ebx, dword [esp + 0x44]
je 0x4946ab
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 0x3d]
cmp ecx, esi
mov ebp, dword [esp + 0x24]
jbe 0x494819
cmp esi, 0x3d
jb 0x4946e2
lea ecx, [esi - 0x3d]
cmp eax, ecx
jbe 0x49482e
mov eax, dword [ebx]
add ecx, dword [ebx + 8]
and ecx, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
jmp 0x4946ef
mov eax, dword [esp + 8]
cmp eax, 2
je 0x4946d3
cmp eax, 1
mov ebx, dword [esp + 0x44]
jne 0x4946ab
xor eax, eax
jmp 0x49477a
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
call fcn.00498ee0
add esp, 0x10
mov esi, 0xffffffff
test eax, eax
je 0x4946fc
jmp 0x4941ee
mov al, 0x10
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x49477e
mov eax, esi
shl eax, 6
lea eax, [eax + esi*4]
add eax, 0x90e234
mov dword [esp + 0x10], eax
push eax
call fcn.00498f70
add esp, 4
push ebp
mov eax, dword [esp + 4]
push dword [eax + 0xc]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
call fcn.00498ee0
add esp, 0x10
test eax, eax
jne 0x494804
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
mov ecx, ebx
lea edx, [esp + 0x10]
push edi
push dword [esp + 0x2c]
call fcn.00497240
add esp, 8
mov edi, eax
push dword [esp + 0x14]
call fcn.00498f90
add esp, 4
push dword [esp + 0x10]
call fcn.00498f90
add esp, 4
test edi, edi
mov ebp, dword [esp]
jne 0x494196
mov edx, esi
cmp esi, 0xffffffff
jne 0x494214
mov ecx, dword [esp + 8]
shl ecx, 3
mov eax, 0x100040
shr eax, cl
mov esi, dword [esp + 0x48]
movzx eax, al
push eax
push esi
call fcn.0049d440
add esp, 8
test eax, eax
jne 0x4941ee
mov edi, dword [esp]
mov edx, dword [edi]
mov ecx, esi
push dword [edi + 8]
call fcn.004975b0
add esp, 4
test eax, eax
jne 0x4941ee
mov edx, dword [edi + 4]
mov ecx, esi
push dword [edi + 0xc]
call fcn.004975b0
add esp, 4
test eax, eax
je 0x494229
jmp 0x4941ee
mov byte [esp + 0x10], 0xff
mov ecx, 2
lea eax, [esp + 0x11]
mov byte [eax], bl
push ecx
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0049d300
add esp, 0xc
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x494229
jmp 0x4941ee
xor eax, eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x10]
mov esi, eax
call fcn.00498f90
mov eax, esi
add esp, 4
jmp 0x4941ee
push 0x518
push str.nghttp2_hd.c
push str.INDEX_RANGE_VALID_context__idx_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x263
push str.nghttp2_hd.c
push 0x90f268
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
nop word cs:[eax + eax]
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x30]
mov ebx, esp
push dword [esi + 0x10]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
call fcn.0049d120
add esp, 0x10
test eax, eax
je 0x49487b
add esp, 0x20
pop esi
pop edi
pop ebx
ret
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push esi
call fcn.00494060
add esp, 0x10
mov edi, eax
push ebx
call fcn.0049d2e0
add esp, 4
mov esi, eax
push ebx
call fcn.0049d290
add esp, 4
cmp edi, 0xfffffe0a
je 0x4948b5
mov eax, edi
test edi, edi
jne 0x494874
mov eax, esi
jmp 0x494874
mov eax, 0xfffffdf3
jmp 0x494874